fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
400 B18 linesraw
1error: attribute should be applied to a trait
2  --> $DIR/attr-misuse.rs:9:1
3   |
4LL | #[const_trait]
5   | ^^^^^^^^^^^^^^
6LL | fn main() {}
7   | ------------ not a trait
8
9error: attribute should be applied to a trait
10  --> $DIR/attr-misuse.rs:5:5
11   |
12LL |     #[const_trait]
13   |     ^^^^^^^^^^^^^^
14LL |     fn foo(self);
15   |     ------------- not a trait
16
17error: aborting due to 2 previous errors
18