fork/rust

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

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

master
567 B17 linesraw
1error[E0277]: the trait bound `i32: Foo` is not satisfied
2  --> $DIR/stall-num-var-auto-trait.rs:18:15
3   |
4LL |     needs_foo(x);
5   |     --------- ^ the trait `Foo` is not implemented for `i32`
6   |     |
7   |     required by a bound introduced by this call
8   |
9note: required by a bound in `needs_foo`
10  --> $DIR/stall-num-var-auto-trait.rs:14:22
11   |
12LL | fn needs_foo(x: impl Foo) {}
13   |                      ^^^ required by this bound in `needs_foo`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.