fork/rust

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

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

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