fork/rust

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

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

master
3.2 KiB95 linesraw
1warning: trait bound i32: Foo does not depend on any type or lifetime parameters
2  --> $DIR/trivial-bounds-inconsistent.rs:14:19
3   |
4LL | enum E where i32: Foo { V }
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/trivial-bounds-inconsistent.rs:16: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/trivial-bounds-inconsistent.rs:18:20
17   |
18LL | trait T where i32: Foo {}
19   |                    ^^^
20
21warning: trait bound i32: Foo does not depend on any type or lifetime parameters
22  --> $DIR/trivial-bounds-inconsistent.rs:20:20
23   |
24LL | union U where i32: Foo { f: i32 }
25   |                    ^^^
26
27warning: where clauses are not enforced in type aliases
28  --> $DIR/trivial-bounds-inconsistent.rs:22:14
29   |
30LL | type Y where i32: Foo = ();
31   |              ^^^^^^^^
32   |
33   = note: `#[warn(type_alias_bounds)]` on by default
34help: the clause will not be checked when the type alias is used, and should be removed
35   |
36LL - type Y where i32: Foo = ();
37LL + type Y  = ();
38   |
39
40warning: trait bound i32: Foo does not depend on any type or lifetime parameters
41  --> $DIR/trivial-bounds-inconsistent.rs:22:19
42   |
43LL | type Y where i32: Foo = ();
44   |                   ^^^
45
46warning: trait bound i32: Foo does not depend on any type or lifetime parameters
47  --> $DIR/trivial-bounds-inconsistent.rs:26:28
48   |
49LL | impl Foo for () where i32: Foo {
50   |                            ^^^
51
52warning: trait bound i32: Foo does not depend on any type or lifetime parameters
53  --> $DIR/trivial-bounds-inconsistent.rs:34:19
54   |
55LL | fn f() where i32: Foo {
56   |                   ^^^
57
58warning: trait bound &'static str: Foo does not depend on any type or lifetime parameters
59  --> $DIR/trivial-bounds-inconsistent.rs:41:28
60   |
61LL | fn g() where &'static str: Foo {
62   |                            ^^^
63
64warning: trait bound str: Sized does not depend on any type or lifetime parameters
65  --> $DIR/trivial-bounds-inconsistent.rs:55:37
66   |
67LL | struct TwoStrs(str, str) where str: Sized;
68   |                                     ^^^^^
69
70warning: trait bound for<'a> Dst<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters
71  --> $DIR/trivial-bounds-inconsistent.rs:57:51
72   |
73LL | fn unsized_local() where for<'a> Dst<dyn A + 'a>: Sized {
74   |                                                   ^^^^^
75
76warning: trait bound str: Sized does not depend on any type or lifetime parameters
77  --> $DIR/trivial-bounds-inconsistent.rs:61:35
78   |
79LL | fn return_str() -> str where str: Sized {
80   |                                   ^^^^^
81
82warning: trait bound String: Neg does not depend on any type or lifetime parameters
83  --> $DIR/trivial-bounds-inconsistent.rs:65:46
84   |
85LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
86   |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87
88warning: trait bound i32: Iterator does not depend on any type or lifetime parameters
89  --> $DIR/trivial-bounds-inconsistent.rs:70:25
90   |
91LL | fn use_for() where i32: Iterator {
92   |                         ^^^^^^^^
93
94warning: 14 warnings emitted
95