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