Skip to content

Commit 1d9757c

Browse files
committed
add todo test for feature gate
1 parent 42119ff commit 1d9757c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
//! WIP
1+
todo!(); //~ ERROR
2+
3+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error: expected one of `!` or `::`, found `(`
2+
--> $DIR/feature-gate-global-registration.rs:1:1
3+
|
4+
LL | todo!();
5+
| ^^^^^^^
6+
| |
7+
| expected one of `!` or `::`
8+
| in this macro invocation
9+
|
10+
= note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
11+
12+
error: aborting due to 1 previous error
13+

0 commit comments

Comments
 (0)