fork/rust

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

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

master
1.8 KiB50 linesraw
1error: trait bound i32: Copy does not depend on any type or lifetime parameters
2  --> $DIR/trivial-bounds-lint.rs:5:21
3   |
4LL | struct A where i32: Copy;
5   |                     ^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/trivial-bounds-lint.rs:3:9
9   |
10LL | #![deny(trivial_bounds)]
11   |         ^^^^^^^^^^^^^^
12
13error: trait bound i32: X<()> does not depend on any type or lifetime parameters
14  --> $DIR/trivial-bounds-lint.rs:18:30
15   |
16LL | fn global_param() where i32: X<()> {}
17   |                              ^^^^^
18
19error: trait bound i32: Z does not depend on any type or lifetime parameters
20  --> $DIR/trivial-bounds-lint.rs:22:35
21   |
22LL | fn global_projection() where i32: Z<S = i32> {}
23   |                                   ^^^^^^^^^^
24
25error: lifetime bound i32: 'static does not depend on any type or lifetime parameters
26  --> $DIR/trivial-bounds-lint.rs:29:34
27   |
28LL | fn global_lifetimes() where i32: 'static, &'static str: 'static {}
29   |                                  ^^^^^^^
30
31error: lifetime bound &'static str: 'static does not depend on any type or lifetime parameters
32  --> $DIR/trivial-bounds-lint.rs:29:57
33   |
34LL | fn global_lifetimes() where i32: 'static, &'static str: 'static {}
35   |                                                         ^^^^^^^
36
37error: lifetime bound 'static: 'static does not depend on any type or lifetime parameters
38  --> $DIR/trivial-bounds-lint.rs:35:37
39   |
40LL | fn global_outlives() where 'static: 'static {}
41   |                                     ^^^^^^^
42
43error: trait bound i32: Copy does not depend on any type or lifetime parameters
44  --> $DIR/trivial-bounds-lint.rs:38:46
45   |
46LL | fn mixed_bounds<T: Copy>() where i32: X<T> + Copy {}
47   |                                              ^^^^
48
49error: aborting due to 7 previous errors
50