summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/tait-eq-tait.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
commit018c4950b9406055dec02ef0fb52f132e2bb1e2c (patch)
treea835ebdf2088ef88fa681f8fad45f09922c1ae9a /tests/ui/traits/new-solver/tait-eq-tait.rs
parentAdding debian version 1.75.0+dfsg1-5. (diff)
downloadrustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.tar.xz
rustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/traits/new-solver/tait-eq-tait.rs')
-rw-r--r--tests/ui/traits/new-solver/tait-eq-tait.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/ui/traits/new-solver/tait-eq-tait.rs b/tests/ui/traits/new-solver/tait-eq-tait.rs
deleted file mode 100644
index 70d9dc0ea..000000000
--- a/tests/ui/traits/new-solver/tait-eq-tait.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// compile-flags: -Ztrait-solver=next
-// check-pass
-
-// Not exactly sure if this is the inference behavior we *want*,
-// but it is a side-effect of the lazy normalization of TAITs.
-
-#![feature(type_alias_impl_trait)]
-
-fn mk<T>() -> T {
- todo!()
-}
-
-fn main() {
- type Tait = impl Sized;
- type Tait2 = impl Sized;
- let x: Tait = 1u32;
- let y: Tait2 = x;
-}