forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't record trait aliases as marker traits
- Loading branch information
1 parent
2ccafed
commit 12f1463
Showing
4 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![feature(trait_alias, marker_trait_attr)] | ||
|
||
#[marker] | ||
//~^ ERROR attribute should be applied to a trait | ||
trait Foo = Send; | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error: attribute should be applied to a trait | ||
--> $DIR/not-a-marker.rs:3:1 | ||
| | ||
LL | #[marker] | ||
| ^^^^^^^^^ | ||
LL | | ||
LL | trait Foo = Send; | ||
| ----------------- not a trait | ||
|
||
error: aborting due to 1 previous error | ||
|