@@ -25,18 +25,6 @@ LL | reuse <F as Trait>::baz;
25
25
| | help: there is an associated function with a similar name: `bar`
26
26
| not a member of trait `Trait`
27
27
28
- error[E0201]: duplicate definitions with name `foo`:
29
- --> $DIR/bad-resolve.rs:37:5
30
- |
31
- LL | fn foo(&self, x: i32) -> i32 { x }
32
- | ---------------------------------- item in trait
33
- ...
34
- LL | reuse foo { &self.0 }
35
- | --------------------- previous definition here
36
- LL |
37
- LL | reuse F::foo { &self.0 }
38
- | ^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
39
-
40
28
error[E0423]: expected function, found associated constant `Trait::C`
41
29
--> $DIR/bad-resolve.rs:24:11
42
30
|
@@ -66,27 +54,6 @@ error[E0425]: cannot find function `foo` in this scope
66
54
LL | reuse foo { &self.0 }
67
55
| ^^^ not found in this scope
68
56
69
- error[E0425]: cannot find function `foo` in `F`
70
- --> $DIR/bad-resolve.rs:37:14
71
- |
72
- LL | reuse F::foo { &self.0 }
73
- | ^^^ not found in `F`
74
-
75
- error[E0425]: cannot find function `foo` in `F`
76
- --> $DIR/bad-resolve.rs:43:14
77
- |
78
- LL | reuse F::foo { &self.0 }
79
- | ^^^ not found in `F`
80
-
81
- warning: the feature `fn_delegation` is incomplete and may not be safe to use and/or cause compiler crashes
82
- --> $DIR/bad-resolve.rs:1:12
83
- |
84
- LL | #![feature(fn_delegation)]
85
- | ^^^^^^^^^^^^^
86
- |
87
- = note: see issue #118212 <https://github.com/rust-lang/rust/issues/118212> for more information
88
- = note: `#[warn(incomplete_features)]` on by default
89
-
90
57
error[E0046]: not all trait items implemented, missing: `Type`
91
58
--> $DIR/bad-resolve.rs:22:1
92
59
|
@@ -96,7 +63,7 @@ LL | type Type;
96
63
LL | impl Trait for S {
97
64
| ^^^^^^^^^^^^^^^^ missing `Type` in implementation
98
65
99
- error: aborting due to 11 previous errors; 1 warning emitted
66
+ error: aborting due to 8 previous errors
100
67
101
- Some errors have detailed explanations: E0046, E0201, E0324, E0407, E0423, E0425, E0575, E0576.
68
+ Some errors have detailed explanations: E0046, E0324, E0407, E0423, E0425, E0575, E0576.
102
69
For more information about an error, try `rustc --explain E0046`.
0 commit comments