blob: 3ed3c580e6d124b65958b0fc4bf496c1fb651646 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(min_specialization)]
struct S;
impl From<S> for S {
fn from(s: S) -> S { //~ ERROR `from` specializes an item from a parent `impl`, but that item is not marked `default`
s
}
}
fn main() {}
|