summary refs log tree commit diff
path: root/tests/ui/delegation/explicit-paths.stderr
blob: 2994b2390dedf280b13a40b8e765983008d42793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
warning: the feature `fn_delegation` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/explicit-paths.rs:1:12
   |
LL | #![feature(fn_delegation)]
   |            ^^^^^^^^^^^^^
   |
   = note: see issue #118212 <https://github.com/rust-lang/rust/issues/118212> for more information
   = note: `#[warn(incomplete_features)]` on by default

error[E0308]: mismatched types
  --> $DIR/explicit-paths.rs:14:25
   |
LL |     reuse <F as Trait>::bar;
   |           --------------^^^
   |           |             |
   |           |             expected `&F`, found `&S`
   |           arguments to this function are incorrect
   |
   = note: expected reference `&F`
              found reference `&S`
note: method defined here
  --> $DIR/explicit-paths.rs:5:8
   |
LL |     fn bar(&self) -> i32 { 42 }
   |        ^^^ -----

error[E0308]: mismatched types
  --> $DIR/explicit-paths.rs:21:32
   |
LL |     reuse <S2 as Trait>::bar { &self.0 }
   |                                ^^^^^^^ expected `&S2`, found `&F`
   |
   = note: expected reference `&S2`
              found reference `&F`

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0308`.