fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
767 B22 linesraw
1error[E0438]: const `BAR` is not a member of trait `A`
2  --> $DIR/trait-impl-can-not-have-untraitful-items.rs:4:5
3   |
4LL |     const BAR: () = ();
5   |     ^^^^^^^^^^^^^^^^^^^ not a member of trait `A`
6
7error[E0437]: type `Baz` is not a member of trait `A`
8  --> $DIR/trait-impl-can-not-have-untraitful-items.rs:5:5
9   |
10LL |     type Baz = ();
11   |     ^^^^^^^^^^^^^^ not a member of trait `A`
12
13error[E0407]: method `foo` is not a member of trait `A`
14  --> $DIR/trait-impl-can-not-have-untraitful-items.rs:6:5
15   |
16LL |     fn foo(&self) { }
17   |     ^^^^^^^^^^^^^^^^^ not a member of trait `A`
18
19error: aborting due to 3 previous errors
20
21Some errors have detailed explanations: E0407, E0437, E0438.
22For more information about an error, try `rustc --explain E0407`.