summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/own-bound-span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generic-associated-types/own-bound-span.rs')
-rw-r--r--src/test/ui/generic-associated-types/own-bound-span.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/generic-associated-types/own-bound-span.rs b/src/test/ui/generic-associated-types/own-bound-span.rs
deleted file mode 100644
index 3699f7296..000000000
--- a/src/test/ui/generic-associated-types/own-bound-span.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-struct S;
-
-trait D {
- type P<T: Copy>;
- //~^ NOTE required by this bound in `D::P`
- //~| NOTE required by a bound in `D::P`
-}
-
-impl D for S {
- type P<T: Copy> = ();
-}
-
-fn main() {
- let _: <S as D>::P<String>;
- //~^ ERROR the trait bound `String: Copy` is not satisfied
- //~| NOTE the trait `Copy` is not implemented for `String`
-}