You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0391]: cycle detected when computing the implied predicates of `Baz`
2
+
--> $DIR/infinite_normalization.rs:8:16
3
+
|
4
+
LL | trait Baz<A> = Baz<Option<A>>;
5
+
| ^^^^^^^^^^^^^^
6
+
|
7
+
= note: ...which immediately requires computing the implied predicates of `Baz` again
8
+
= note: trait aliases cannot be recursive
9
+
note: cycle used when computing normalized predicates of `foo`
10
+
--> $DIR/infinite_normalization.rs:7:1
11
+
|
12
+
LL | fn foo<T: Baz<i32>>() {}
13
+
| ^^^^^^^^^^^^^^^^^^^^^
14
+
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
15
+
16
+
error: aborting due to 1 previous error
17
+
18
+
For more information about this error, try `rustc --explain E0391`.
0 commit comments