summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trait-bounds/unsized-bound.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/trait-bounds/unsized-bound.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/trait-bounds/unsized-bound.rs')
-rw-r--r--src/test/ui/trait-bounds/unsized-bound.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/test/ui/trait-bounds/unsized-bound.rs b/src/test/ui/trait-bounds/unsized-bound.rs
deleted file mode 100644
index 035b8ef1b..000000000
--- a/src/test/ui/trait-bounds/unsized-bound.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-trait Trait<A> {}
-impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
-//~^ ERROR E0277
-//~| ERROR E0277
-impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
-//~^ ERROR E0277
-//~| ERROR E0277
-//~| ERROR E0277
-trait Trait2<A> {}
-impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
-//~^ ERROR E0277
-//~| ERROR E0277
-trait Trait3<A> {}
-impl<A> Trait3<A> for A where A: ?Sized {}
-//~^ ERROR E0277
-trait Trait4<A> {}
-impl<A: ?Sized> Trait4<A> for A {}
-//~^ ERROR E0277
-trait Trait5<A, B> {}
-impl<X, Y> Trait5<X, Y> for X where X: ?Sized {}
-//~^ ERROR E0277
-trait Trait6<A, B> {}
-impl<X: ?Sized, Y> Trait6<X, Y> for X {}
-//~^ ERROR E0277
-trait Trait7<A, B> {}
-impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {}
-//~^ ERROR E0277
-trait Trait8<A, B> {}
-impl<X, Y: ?Sized> Trait8<X, Y> for X {}
-//~^ ERROR E0277
-
-fn main() {}