fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0449]: visibility qualifiers are not permitted here 2 --> $DIR/issue-29161.rs:5:9 3 | 4LL | pub fn default() -> A { 5 | ^^^ 6 | 7 = note: trait items always share the visibility of their trait 8 9error[E0603]: struct `A` is private 10 --> $DIR/issue-29161.rs:13:8 11 | 12LL | a::A::default(); 13 | ^ private struct 14 | 15note: the struct `A` is defined here 16 --> $DIR/issue-29161.rs:2:5 17 | 18LL | struct A; 19 | ^^^^^^^^^ 20 21error: aborting due to 2 previous errors 22 23Some errors have detailed explanations: E0449, E0603. 24For more information about an error, try `rustc --explain E0449`.