about summary refs log tree commit diff
path: root/tests/ui/errors
diff options
context:
space:
mode:
authorOneirical <manchot@videotron.ca>2024-07-16 13:13:52 -0400
committerOneirical <manchot@videotron.ca>2024-07-22 10:11:59 -0400
commit613a7a79e7ce7f733e622040d45e392c159d13e3 (patch)
tree5dcd61d3bcfe4a40d392ba4c1f8c9a88812197b5 /tests/ui/errors
parente870ab86dcf2bf85da5fd81883bb437d9cc6e90f (diff)
downloadrust-613a7a79e7ce7f733e622040d45e392c159d13e3.tar.gz
rust-613a7a79e7ce7f733e622040d45e392c159d13e3.zip
rewrite and rename issue-33329 to ui test
Diffstat (limited to 'tests/ui/errors')
-rw-r--r--tests/ui/errors/wrong-target-spec.rs3
-rw-r--r--tests/ui/errors/wrong-target-spec.stderr2
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/errors/wrong-target-spec.rs b/tests/ui/errors/wrong-target-spec.rs
new file mode 100644
index 00000000000..d1d0fcc5fa0
--- /dev/null
+++ b/tests/ui/errors/wrong-target-spec.rs
@@ -0,0 +1,3 @@
+//@ compile-flags: --target x86_64_unknown-linux-musl
+
+fn main() {}
diff --git a/tests/ui/errors/wrong-target-spec.stderr b/tests/ui/errors/wrong-target-spec.stderr
new file mode 100644
index 00000000000..8b06f404078
--- /dev/null
+++ b/tests/ui/errors/wrong-target-spec.stderr
@@ -0,0 +1,2 @@
+error: Error loading target specification: Could not find specification for target "x86_64_unknown-linux-musl". Run `rustc --print target-list` for a list of built-in targets
+