summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/attr-misuse.stderr
blob: 998958cedf748aef31fbaee1bf7e8ce805dd666b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: attribute should be applied to a trait
  --> $DIR/attr-misuse.rs:9:1
   |
LL | #[const_trait]
   | ^^^^^^^^^^^^^^
LL | fn main() {}
   | ------------ not a trait

error: attribute should be applied to a trait
  --> $DIR/attr-misuse.rs:5:5
   |
LL |     #[const_trait]
   |     ^^^^^^^^^^^^^^
LL |     fn foo(self);
   |     ------------- not a trait

error: aborting due to 2 previous errors