diff options
Diffstat (limited to 'tests/ui/specialization/issue-111232.rs')
-rw-r--r-- | tests/ui/specialization/issue-111232.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/specialization/issue-111232.rs b/tests/ui/specialization/issue-111232.rs new file mode 100644 index 000000000..3ed3c580e --- /dev/null +++ b/tests/ui/specialization/issue-111232.rs @@ -0,0 +1,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() {} |