add todo test for feature gate

This commit is contained in:
jdonszelmann 2024-05-20 09:18:49 +02:00
parent 42119ff45c
commit 1d9757cd84
No known key found for this signature in database
GPG Key ID: E0C1EA36407B2FF2
2 changed files with 16 additions and 1 deletions

View File

@ -1 +1,3 @@
//! WIP
todo!(); //~ ERROR
fn main() {}

View File

@ -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