rust/tests/ui/specialization/issue-111232.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
219 B
Rust
Raw Normal View History

#![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() {}