fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
897 B26 linesraw
1warning: function cannot return without recursing
2  --> $DIR/multiple-defining-usages-in-body.rs:4:1
3   |
4LL | fn foo<T: Trait, U: Trait>() -> impl Trait {
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
6LL |
7LL |     let a: T = foo::<T, U>();
8   |                ------------- recursive call site
9   |
10   = help: a `loop` may express intention better if this is on purpose
11   = note: `#[warn(unconditional_recursion)]` on by default
12
13error: concrete type differs from previous defining opaque type use
14  --> $DIR/multiple-defining-usages-in-body.rs:8:16
15   |
16LL |     let _: T = foo::<U, T>();
17   |                ^^^^^^^^^^^^^ expected `T`, got `U`
18   |
19note: previous use here
20  --> $DIR/multiple-defining-usages-in-body.rs:6:16
21   |
22LL |     let a: T = foo::<T, U>();
23   |                ^^^^^^^^^^^^^
24
25error: aborting due to previous error; 1 warning emitted
26