fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0449]: visibility qualifiers are not permitted here 2 --> $DIR/useless-pub.rs:8:5 3 | 4LL | pub fn foo(&self) {} 5 | ^^^ 6 | 7 = note: trait items always share the visibility of their trait 8 9error[E0449]: visibility qualifiers are not permitted here 10 --> $DIR/useless-pub.rs:12:10 11 | 12LL | V1 { pub f: i32 }, 13 | ^^^ 14 | 15 = note: enum variants and their fields always share the visibility of the enum they are in 16 17error[E0449]: visibility qualifiers are not permitted here 18 --> $DIR/useless-pub.rs:13:8 19 | 20LL | V2(pub i32), 21 | ^^^ 22 | 23 = note: enum variants and their fields always share the visibility of the enum they are in 24 25error: aborting due to 3 previous errors 26 27For more information about this error, try `rustc --explain E0449`.