We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb1d80d + d3ebd23 commit ed1602eCopy full SHA for ed1602e
tests/ui/traits/coherence-alias-hang.rs
@@ -0,0 +1,23 @@
1
+//@ check-pass
2
+
3
+// Regression test for nalgebra hang <https://github.com/rust-lang/rust/issues/130056>.
4
5
+#![feature(lazy_type_alias)]
6
+#![allow(incomplete_features)]
7
8
+type Id<T: ?Sized> = T;
9
+trait NotImplemented {}
10
11
+struct W<T: ?Sized, U: ?Sized>(*const T, *const U);
12
+trait Trait {
13
+ type Assoc: ?Sized;
14
+}
15
+impl<T: ?Sized + Trait> Trait for W<T, T> {
16
+ type Assoc = W<T::Assoc, Id<T::Assoc>>;
17
18
19
+trait Overlap<T: ?Sized> {}
20
+impl<T: ?Sized> Overlap<T> for W<T, T> {}
21
+impl<T: ?Sized + Trait + NotImplemented> Overlap<T::Assoc> for T {}
22
23
+fn main() {}
0 commit comments