summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/trivial-cast-ice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/trivial-cast-ice.rs')
-rw-r--r--src/test/ui/lint/trivial-cast-ice.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/lint/trivial-cast-ice.rs b/src/test/ui/lint/trivial-cast-ice.rs
new file mode 100644
index 000000000..f781fab22
--- /dev/null
+++ b/src/test/ui/lint/trivial-cast-ice.rs
@@ -0,0 +1,12 @@
+// aux-build:trivial-cast-ice.rs
+// check-pass
+
+// Demonstrates the ICE in #102561
+
+#![deny(trivial_casts)]
+
+extern crate trivial_cast_ice;
+
+fn main() {
+ trivial_cast_ice::foo!();
+}