add todo test for feature gate
This commit is contained in:
parent
42119ff45c
commit
1d9757cd84
@ -1 +1,3 @@
|
||||
//! WIP
|
||||
todo!(); //~ ERROR
|
||||
|
||||
fn main() {}
|
||||
|
@ -0,0 +1,13 @@
|
||||
error: expected one of `!` or `::`, found `(`
|
||||
--> $DIR/feature-gate-global-registration.rs:1:1
|
||||
|
|
||||
LL | todo!();
|
||||
| ^^^^^^^
|
||||
| |
|
||||
| expected one of `!` or `::`
|
||||
| in this macro invocation
|
||||
|
|
||||
= note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
Loading…
Reference in New Issue
Block a user