summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unsafe/unsafe-trait-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/unsafe/unsafe-trait-impl.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/unsafe/unsafe-trait-impl.rs b/src/test/ui/unsafe/unsafe-trait-impl.rs
deleted file mode 100644
index 03a251be1..000000000
--- a/src/test/ui/unsafe/unsafe-trait-impl.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Check that safe fns are not a subtype of unsafe fns.
-
-trait Foo {
- unsafe fn len(&self) -> u32;
-}
-
-impl Foo for u32 {
- fn len(&self) -> u32 { *self }
- //~^ ERROR method `len` has an incompatible type for trait
- //~| expected fn pointer `unsafe fn(&u32) -> _`
- //~| found fn pointer `fn(&u32) -> _`
-}
-
-fn main() { }