summaryrefslogtreecommitdiffstats
path: root/src/test/ui/specialization/issue-59435.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/specialization/issue-59435.rs')
-rw-r--r--src/test/ui/specialization/issue-59435.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/specialization/issue-59435.rs b/src/test/ui/specialization/issue-59435.rs
deleted file mode 100644
index 323900256..000000000
--- a/src/test/ui/specialization/issue-59435.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-#![feature(specialization)]
-#![allow(incomplete_features)]
-
-struct MyStruct {}
-
-trait MyTrait {
- type MyType: Default;
-}
-
-impl MyTrait for i32 {
- default type MyType = MyStruct;
- //~^ ERROR: the trait bound `MyStruct: Default` is not satisfied
-}
-
-fn main() {
- let _x: <i32 as MyTrait>::MyType = <i32 as MyTrait>::MyType::default();
-}