rust/tests/ui/dont-suggest-private-trait-method.rs
2023-01-11 09:32:08 +00:00

7 lines
103 B
Rust

struct T;
fn main() {
T::new();
//~^ ERROR no function or associated item named `new` found
}