diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/feature-gates/gated-bad-feature.stderr | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/feature-gates/gated-bad-feature.stderr')
-rw-r--r-- | tests/ui/feature-gates/gated-bad-feature.stderr | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/gated-bad-feature.stderr b/tests/ui/feature-gates/gated-bad-feature.stderr new file mode 100644 index 000000000..2d01bdf3c --- /dev/null +++ b/tests/ui/feature-gates/gated-bad-feature.stderr @@ -0,0 +1,46 @@ +error[E0556]: malformed `feature` attribute input + --> $DIR/gated-bad-feature.rs:1:25 + | +LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)] + | ^^^^^^^^ help: expected just one word: `foo` + +error[E0556]: malformed `feature` attribute input + --> $DIR/gated-bad-feature.rs:1:35 + | +LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)] + | ^^^^^^^^^^^ help: expected just one word: `foo` + +error[E0557]: feature has been removed + --> $DIR/gated-bad-feature.rs:8:12 + | +LL | #![feature(test_removed_feature)] + | ^^^^^^^^^^^^^^^^^^^^ feature has been removed + +error: malformed `feature` attribute input + --> $DIR/gated-bad-feature.rs:6:1 + | +LL | #![feature] + | ^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name2, ...)]` + +error: malformed `feature` attribute input + --> $DIR/gated-bad-feature.rs:7:1 + | +LL | #![feature = "foo"] + | ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name2, ...)]` + +error[E0635]: unknown feature `foo_bar_baz` + --> $DIR/gated-bad-feature.rs:1:12 + | +LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)] + | ^^^^^^^^^^^ + +error[E0635]: unknown feature `foo` + --> $DIR/gated-bad-feature.rs:1:48 + | +LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)] + | ^^^ + +error: aborting due to 7 previous errors + +Some errors have detailed explanations: E0556, E0557, E0635. +For more information about an error, try `rustc --explain E0556`. |