]> git.lizzy.rs Git - rust.git/blob - tests/ui/trivial-bounds/issue-73021-impossible-inline.inline.stderr
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / ui / trivial-bounds / issue-73021-impossible-inline.inline.stderr
1 warning: trait bound for<'any> &'any mut (): Clone does not depend on any type or lifetime parameters
2   --> $DIR/issue-73021-impossible-inline.rs:20:29
3    |
4 LL |     for<'any> &'any mut (): Clone,
5    |                             ^^^^^
6    |
7    = note: `#[warn(trivial_bounds)]` on by default
8
9 warning: trait bound i32: Foo does not depend on any type or lifetime parameters
10   --> $DIR/issue-73021-impossible-inline.rs:28:21
11    |
12 LL | struct S where i32: Foo;
13    |                     ^^^
14
15 warning: trait bound i32: Foo does not depend on any type or lifetime parameters
16   --> $DIR/issue-73021-impossible-inline.rs:31:28
17    |
18 LL | impl Foo for () where i32: Foo {
19    |                            ^^^
20
21 warning: trait bound i32: Foo does not depend on any type or lifetime parameters
22   --> $DIR/issue-73021-impossible-inline.rs:40:19
23    |
24 LL | fn f() where i32: Foo {
25    |                   ^^^
26
27 warning: trait bound &'static str: Foo does not depend on any type or lifetime parameters
28   --> $DIR/issue-73021-impossible-inline.rs:48:28
29    |
30 LL | fn g() where &'static str: Foo {
31    |                            ^^^
32
33 warning: trait bound String: Neg does not depend on any type or lifetime parameters
34   --> $DIR/issue-73021-impossible-inline.rs:57:13
35    |
36 LL |     String: ::std::ops::Neg<Output = String>,
37    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
39 warning: trait bound i32: Iterator does not depend on any type or lifetime parameters
40   --> $DIR/issue-73021-impossible-inline.rs:65:10
41    |
42 LL |     i32: Iterator,
43    |          ^^^^^^^^
44
45 warning: 7 warnings emitted
46