fork/rust

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

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

master
1.2 KiB34 linesraw
1error: associated type constraints not allowed on negative bounds
2  --> $DIR/associated-constraints.rs:8:19
3   |
4LL | fn test<T: !Trait<Assoc = i32>>() {}
5   |                   ^^^^^^^^^^^
6
7error: associated type constraints not allowed on negative bounds
8  --> $DIR/associated-constraints.rs:11:31
9   |
10LL | fn test2<T>() where T: !Trait<Assoc = i32> {}
11   |                               ^^^^^^^^^^^
12
13error: associated type constraints not allowed on negative bounds
14  --> $DIR/associated-constraints.rs:14:20
15   |
16LL | fn test3<T: !Trait<Assoc: Send>>() {}
17   |                    ^^^^^^^^^^^
18
19error: associated type constraints not allowed on negative bounds
20  --> $DIR/associated-constraints.rs:17:31
21   |
22LL | fn test4<T>() where T: !Trait<Assoc: Send> {}
23   |                               ^^^^^^^^^^^
24
25warning: the feature `negative_bounds` is incomplete and may not be safe to use and/or cause compiler crashes
26  --> $DIR/associated-constraints.rs:1:12
27   |
28LL | #![feature(negative_bounds, associated_type_bounds)]
29   |            ^^^^^^^^^^^^^^^
30   |
31   = note: `#[warn(incomplete_features)]` on by default
32
33error: aborting due to 4 previous errors; 1 warning emitted
34