mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 13:46:21 +00:00
23 lines
371 B
Rust
23 lines
371 B
Rust
// Regression test for part of issue #119924.
|
|
// check-pass
|
|
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
#[const_trait]
|
|
trait Trait {
|
|
fn required();
|
|
}
|
|
|
|
impl const Trait for () {
|
|
fn required() {
|
|
pub struct Type;
|
|
|
|
impl Type {
|
|
// This visibility qualifier used to get rejected.
|
|
pub fn perform() {}
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|