fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
539 B16 linesraw
1error[E0391]: cycle detected when computing the bounds for type parameter `T`
2  --> $DIR/issue-21177.rs:6:21
3   |
4LL | fn foo<T: Trait<A = T::B>>() { }
5   |                     ^^^^
6   |
7   = note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
8note: cycle used when processing `foo`
9  --> $DIR/issue-21177.rs:6:21
10   |
11LL | fn foo<T: Trait<A = T::B>>() { }
12   |                     ^^^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0391`.