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