summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid/invalid-crate-type.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/invalid/invalid-crate-type.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/invalid/invalid-crate-type.stderr')
-rw-r--r--tests/ui/invalid/invalid-crate-type.stderr58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/ui/invalid/invalid-crate-type.stderr b/tests/ui/invalid/invalid-crate-type.stderr
new file mode 100644
index 000000000..59d5d7bc9
--- /dev/null
+++ b/tests/ui/invalid/invalid-crate-type.stderr
@@ -0,0 +1,58 @@
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:2:15
+ |
+LL | #![crate_type="foo"]
+ | ^^^^^
+ |
+ = note: `#[deny(unknown_crate_types)]` on by default
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:6:15
+ |
+LL | #![crate_type="statoclib"]
+ | ^^^^^^^^^^^ help: did you mean: `"staticlib"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:11:15
+ |
+LL | #![crate_type="procmacro"]
+ | ^^^^^^^^^^^ help: did you mean: `"proc-macro"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:16:15
+ |
+LL | #![crate_type="static-lib"]
+ | ^^^^^^^^^^^^ help: did you mean: `"staticlib"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:21:15
+ |
+LL | #![crate_type="drylib"]
+ | ^^^^^^^^ help: did you mean: `"dylib"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:26:15
+ |
+LL | #![crate_type="dlib"]
+ | ^^^^^^ help: did you mean: `"rlib"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:31:15
+ |
+LL | #![crate_type="lob"]
+ | ^^^^^ help: did you mean: `"lib"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:36:15
+ |
+LL | #![crate_type="bon"]
+ | ^^^^^ help: did you mean: `"bin"`
+
+error: invalid `crate_type` value
+ --> $DIR/invalid-crate-type.rs:41:15
+ |
+LL | #![crate_type="cdalib"]
+ | ^^^^^^^^ help: did you mean: `"cdylib"`
+
+error: aborting due to 9 previous errors
+