File tree 3 files changed +22
-1
lines changed
compiler/rustc_hir_analysis/src
3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,6 @@ pub enum ImplNotMarkedDefault {
657
657
#[ note]
658
658
Err {
659
659
#[ primary_span]
660
- #[ label]
661
660
span : Span ,
662
661
cname : Symbol ,
663
662
ident : Symbol ,
Original file line number Diff line number Diff line change
1
+ #![ feature( min_specialization) ]
2
+
3
+ struct S ;
4
+
5
+ impl From < S > for S {
6
+ fn from ( s : S ) -> S { //~ ERROR `from` specializes an item from a parent `impl`, but that item is not marked `default`
7
+ s
8
+ }
9
+ }
10
+
11
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error[E0520]: `from` specializes an item from a parent `impl`, but that item is not marked `default`
2
+ --> $DIR/issue-111232.rs:6:5
3
+ |
4
+ LL | fn from(s: S) -> S {
5
+ | ^^^^^^^^^^^^^^^^^^
6
+ |
7
+ = note: parent implementation is in crate `core`
8
+
9
+ error: aborting due to previous error
10
+
11
+ For more information about this error, try `rustc --explain E0520`.
You can’t perform that action at this time.
0 commit comments