add todo test for feature gate
This commit is contained in:
parent
42119ff45c
commit
1d9757cd84
2 changed files with 16 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue