]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/tag-that-dare-not-speak-its-name.rs
Merge 1.70 into proxmox/bookworm
[rustc.git] / tests / ui / tag-that-dare-not-speak-its-name.rs
diff --git a/tests/ui/tag-that-dare-not-speak-its-name.rs b/tests/ui/tag-that-dare-not-speak-its-name.rs
deleted file mode 100644 (file)
index 0e76ec2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// Issue #876
-
-use std::vec::Vec;
-
-fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
-    ::std::panic!();
-}
-
-fn main() {
-    let y;
-    let x : char = last(y);
-    //~^ ERROR mismatched types
-    //~| expected type `char`
-    //~| found enum `Option<_>`
-    //~| expected `char`, found `Option<_>`
-}