1 An inherent `impl` was written on a dyn auto trait.
3 Erroneous code example:
6 #![feature(auto_traits)]
8 auto trait AutoTrait {}
13 Dyn objects allow any number of auto traits, plus at most one non-auto trait.
14 The non-auto trait becomes the "principal trait".
16 When checking if an impl on a dyn trait is coherent, the principal trait is
17 normally the only one considered. Since the erroneous code has no principal
18 trait, it cannot be implemented at all.
23 #![feature(auto_traits)]
25 trait PrincipalTrait {}
27 auto trait AutoTrait {}
29 impl dyn PrincipalTrait + AutoTrait + Send {}