1
Fork 0

Implement RFC 1268

This patch allows overlap to occur between any two impls of a trait for
traits which have no associated items.

Several compile-fail tests around coherence had to be changed to add at
least one item to the trait they test against.

Ref #29864
This commit is contained in:
Sean Griffin 2017-02-25 16:16:27 -05:00 committed by Corey Farwell
parent f0ca5d4bad
commit 4aca540018
20 changed files with 64 additions and 21 deletions

View file

@ -10,7 +10,7 @@
#![feature(optin_builtin_traits)]
trait MyTrait {}
trait MyTrait { fn foo() {} }
impl MyTrait for .. {}
//~^ ERROR redundant default implementations of trait `MyTrait`