]> git.proxmox.com Git - rustc.git/blame - src/test/ui/trivial-bounds/trivial-bounds-lint.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / trivial-bounds / trivial-bounds-lint.stderr
CommitLineData
1b1a35ee 1error: 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 4LL | struct A where i32: Copy;
0bf4aa26 5 | ^^^^
94b46f34 6 |
74b04a01 7note: the lint level is defined here
0731742a 8 --> $DIR/trivial-bounds-lint.rs:3:9
94b46f34
XL
9 |
10LL | #![deny(trivial_bounds)]
11 | ^^^^^^^^^^^^^^
12
13error: 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 16LL | fn global_param() where i32: X<()> {}
0bf4aa26 17 | ^^^^^
94b46f34
XL
18
19error: 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 22LL | fn global_projection() where i32: Z<S = i32> {}
0bf4aa26 23 | ^^^^^^^^^^
94b46f34 24
dfeec247 25error: 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 |
28LL | fn global_lifetimes() where i32: 'static, &'static str: 'static {}
0bf4aa26 29 | ^^^^^^^
94b46f34 30
dfeec247 31error: 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 |
34LL | fn global_lifetimes() where i32: 'static, &'static str: 'static {}
0bf4aa26 35 | ^^^^^^^
94b46f34 36
dfeec247 37error: 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 40LL | fn global_outlives() where 'static: 'static {}
0bf4aa26 41 | ^^^^^^^
94b46f34 42
1b1a35ee 43error: 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 46LL | fn mixed_bounds<T: Copy>() where i32: X<T> + Copy {}
0bf4aa26 47 | ^^^^
94b46f34
XL
48
49error: aborting due to 7 previous errors
50