rust/tests/ui/parser/trait-pub-method.rs

7 lines
106 B
Rust

trait Foo {
pub fn foo();
//~^ ERROR visibility qualifiers are not permitted here
}
fn main() {}