fork/rust

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

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

master
1.5 KiB48 linesraw
1warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/fail.rs:3:12
3   |
4LL | #![feature(non_lifetime_binders)]
5   |            ^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8   = note: `#[warn(incomplete_features)]` on by default
9
10error[E0277]: the trait bound `T: Trait` is not satisfied
11  --> $DIR/fail.rs:19:5
12   |
13LL |     fail();
14   |     ^^^^ the trait `Trait` is not implemented for `T`
15   |
16help: this trait has no implementations, consider adding one
17  --> $DIR/fail.rs:6:1
18   |
19LL | trait Trait {}
20   | ^^^^^^^^^^^
21note: required by a bound in `fail`
22  --> $DIR/fail.rs:10:15
23   |
24LL | fn fail()
25   |    ---- required by a bound in this function
26LL | where
27LL |     for<T> T: Trait,
28   |               ^^^^^ required by this bound in `fail`
29
30error[E0277]: `T` cannot be sent between threads safely
31  --> $DIR/fail.rs:21:5
32   |
33LL |     auto_trait();
34   |     ^^^^^^^^^^ `T` cannot be sent between threads safely
35   |
36   = help: the trait `Send` is not implemented for `T`
37note: required by a bound in `auto_trait`
38  --> $DIR/fail.rs:15:15
39   |
40LL | fn auto_trait()
41   |    ---------- required by a bound in this function
42LL | where
43LL |     for<T> T: Send,
44   |               ^^^^ required by this bound in `auto_trait`
45
46error: aborting due to 2 previous errors; 1 warning emitted
47
48For more information about this error, try `rustc --explain E0277`.