rust/tests/ui/rfcs/rfc-2632-const-trait-impl/attr-misuse.stderr
2023-06-20 04:38:55 +00:00

19 lines
400 B
Plaintext

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