mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
12 lines
219 B
Rust
12 lines
219 B
Rust
|
#![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() {}
|