Merge attrs, better validation
This commit is contained in:
parent
91e5c3f2e5
commit
ca68cf0d46
16 changed files with 140 additions and 73 deletions
|
@ -3,12 +3,16 @@ error: attribute should be applied to a trait
|
|||
|
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue