Skip to content

Commit 4bc5490

Browse files
committed
Rename feature gate test to correct filename, add stderr for uitest
1 parent 95d110c commit 4bc5490

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/ui/feature-gates/feature-gate-proc_macro_c_string.rs renamed to tests/ui/feature-gates/feature-gate-c_string_literals.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// edition: 2021
12
// force-host
23
#![crate_type = "proc-macro"]
34

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0658]: use of unstable library feature 'c_str_literals'
2+
--> $DIR/feature-gate-c_str_literals.rs:10:5
3+
|
4+
LL | Literal::c_string(c"a");
5+
| ^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #115268 <https://github.com/rust-lang/rust/issues/105723> for more information
8+
= help: add `#![feature(c_str_literals)]` to the crate attributes to enable
9+
10+
error: aborting due to 1 previous error
11+
12+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)