Add test renamed_feature.rs
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
parent
775e0c8aeb
commit
8eeaed06ea
2 changed files with 12 additions and 0 deletions
3
tests/ui/stability-attribute/renamed_feature.rs
Normal file
3
tests/ui/stability-attribute/renamed_feature.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#![feature(try_trait)] //~ ERROR unknown feature `try_trait`
|
||||
|
||||
fn main() {}
|
||||
9
tests/ui/stability-attribute/renamed_feature.stderr
Normal file
9
tests/ui/stability-attribute/renamed_feature.stderr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
error[E0635]: unknown feature `try_trait`
|
||||
--> $DIR/renamed_feature.rs:1:12
|
||||
|
|
||||
LL | #![feature(try_trait)]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0635`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue