Add test renamed_feature.rs

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
xizheyin 2025-06-07 18:51:05 +08:00
parent 775e0c8aeb
commit 8eeaed06ea
No known key found for this signature in database
GPG key ID: 0A0D90BE99CEDEAD
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#![feature(try_trait)] //~ ERROR unknown feature `try_trait`
fn main() {}

View 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`.