fork/rust

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

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

master
3.1 KiB87 linesraw
1warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:2:12
3   |
4LL | #![feature(unsized_locals, unsized_fn_params)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
8   = note: `#[warn(incomplete_features)]` on by default
9
10error[E0308]: mismatched types
11  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:87:24
12   |
13LL |     let _seetype: () = z;
14   |                   --   ^ expected `()`, found `u32`
15   |                   |
16   |                   expected due to this
17
18error[E0308]: mismatched types
19  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:104:24
20   |
21LL |     let _seetype: () = z;
22   |                   --   ^ expected `()`, found `u64`
23   |                   |
24   |                   expected due to this
25
26error[E0034]: multiple applicable items in scope
27  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:122:15
28   |
29LL |     let z = x.foo();
30   |               ^^^ multiple `foo` found
31   |
32note: candidate #1 is defined in an impl of the trait `X` for the type `T`
33  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:45:9
34   |
35LL |         fn foo(self: Smaht<Self, u64>) -> u64 {
36   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37note: candidate #2 is defined in an impl of the trait `NuisanceFoo` for the type `T`
38  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:72:9
39   |
40LL |         fn foo(self) {}
41   |         ^^^^^^^^^^^^
42note: candidate #3 is defined in the trait `FinalFoo`
43  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:59:5
44   |
45LL |     fn foo(&self) -> u8;
46   |     ^^^^^^^^^^^^^^^^^^^^
47help: disambiguate the method for candidate #1
48   |
49LL |     let z = X::foo(x);
50   |             ~~~~~~~~~
51help: disambiguate the method for candidate #2
52   |
53LL |     let z = NuisanceFoo::foo(x);
54   |             ~~~~~~~~~~~~~~~~~~~
55help: disambiguate the method for candidate #3
56   |
57LL |     let z = FinalFoo::foo(x);
58   |             ~~~~~~~~~~~~~~~~
59
60error[E0308]: mismatched types
61  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:139:24
62   |
63LL |     let _seetype: () = z;
64   |                   --   ^ expected `()`, found `u8`
65   |                   |
66   |                   expected due to this
67
68error[E0308]: mismatched types
69  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:157:24
70   |
71LL |     let _seetype: () = z;
72   |                   --   ^ expected `()`, found `u32`
73   |                   |
74   |                   expected due to this
75
76error[E0308]: mismatched types
77  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:174:24
78   |
79LL |     let _seetype: () = z;
80   |                   --   ^ expected `()`, found `u32`
81   |                   |
82   |                   expected due to this
83
84error: aborting due to 6 previous errors; 1 warning emitted
85
86Some errors have detailed explanations: E0034, E0308.
87For more information about an error, try `rustc --explain E0034`.