about summary refs log tree commit diff
path: root/tests/ui/traits/alias/infinite_normalization.stderr
blob: 5fe423609e5ac554588cdd52284ca1053a68be7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0391]: cycle detected when computing the implied predicates of `Baz`
  --> $DIR/infinite_normalization.rs:8:16
   |
LL | trait Baz<A> = Baz<Option<A>>;
   |                ^^^^^^^^^^^^^^
   |
   = note: ...which immediately requires computing the implied predicates of `Baz` again
   = note: trait aliases cannot be recursive
note: cycle used when computing normalized predicates of `foo`
  --> $DIR/infinite_normalization.rs:7:1
   |
LL | fn foo<T: Baz<i32>>() {}
   | ^^^^^^^^^^^^^^^^^^^^^
   = 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

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0391`.