diff options
| author | jdonszelmann <jonabent@gmail.com> | 2024-05-20 09:18:49 +0200 |
|---|---|---|
| committer | jdonszelmann <jonabent@gmail.com> | 2024-05-20 09:18:49 +0200 |
| commit | 1d9757cd849989691becceb15e0e7c2ec37a3452 (patch) | |
| tree | bf0cbc1970998aa03de122ec044f923e6b8e55c7 | |
| parent | 42119ff45c75e5e3ced06f1f45a9e4853fb5bca9 (diff) | |
| download | rust-1d9757cd849989691becceb15e0e7c2ec37a3452.tar.gz rust-1d9757cd849989691becceb15e0e7c2ec37a3452.zip | |
add todo test for feature gate
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-global-registration.rs | 4 | ||||
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-global-registration.stderr | 13 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/ui/feature-gates/feature-gate-global-registration.rs b/tests/ui/feature-gates/feature-gate-global-registration.rs index 77072727ec5..6ac36712090 100644 --- a/tests/ui/feature-gates/feature-gate-global-registration.rs +++ b/tests/ui/feature-gates/feature-gate-global-registration.rs @@ -1 +1,3 @@ -//! WIP +todo!(); //~ ERROR + +fn main() {} diff --git a/tests/ui/feature-gates/feature-gate-global-registration.stderr b/tests/ui/feature-gates/feature-gate-global-registration.stderr new file mode 100644 index 00000000000..70538ae6f31 --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-global-registration.stderr @@ -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 + |
