forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gate against auto traits pre-expansion
- Loading branch information
1 parent
5333b87
commit 7815641
Showing
5 changed files
with
29 additions
and
1 deletion.
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 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 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,8 @@ | ||
// check-pass | ||
|
||
#[cfg(FALSE)] | ||
auto trait Foo {} | ||
//~^ WARN `auto` traits are unstable | ||
//~| WARN unstable syntax can change at any point in the future, causing a hard error! | ||
|
||
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,13 @@ | ||
warning: `auto` traits are unstable | ||
--> $DIR/pre-cfg.rs:4:1 | ||
| | ||
LL | auto trait Foo {} | ||
| ^^^^ | ||
| | ||
= note: see issue #13231 <https://github.com/rust-lang/rust/issues/13231> for more information | ||
= help: add `#![feature(auto_traits)]` to the crate attributes to enable | ||
= warning: unstable syntax can change at any point in the future, causing a hard error! | ||
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860> | ||
|
||
warning: 1 warning emitted | ||
|
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