rust/tests/ui/parser/impls-nested-within-fns-semantic-1.rs
2024-06-22 14:11:11 +00:00

23 lines
417 B
Rust

// Regression test for part of issue #119924.
//@ check-pass
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
#[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() {}