about summary refs log tree commit diff
path: root/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/trait-bounds-on-structs-and-enums.rs')
-rw-r--r--src/test/compile-fail/trait-bounds-on-structs-and-enums.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs b/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs
index 988961e7fa1..e1b005b0c85 100644
--- a/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs
+++ b/src/test/compile-fail/trait-bounds-on-structs-and-enums.rs
@@ -20,12 +20,6 @@ enum Bar<T:Trait> {
     CBar(usize),
 }
 
-fn explode(x: Foo<u32>) {}
-//~^ ERROR not implemented
-
-fn kaboom(y: Bar<f32>) {}
-//~^ ERROR not implemented
-
 impl<T> Foo<T> {
 //~^ ERROR the trait `Trait` is not implemented
     fn uhoh() {}
@@ -55,16 +49,5 @@ enum Enum {
     DictionaryLike { field: Bar<u8> }, //~ ERROR not implemented
 }
 
-trait PolyTrait<T>
-{
-    fn whatever(&self, t: T) {}
-}
-
-struct Struct;
-
-impl PolyTrait<Foo<u16>> for Struct {
-//~^ ERROR not implemented
-}
-
 fn main() {
 }