diff options
Diffstat (limited to 'tests/ui/auto-traits/auto-trait-validation.fixed')
-rw-r--r-- | tests/ui/auto-traits/auto-trait-validation.fixed | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/auto-traits/auto-trait-validation.fixed b/tests/ui/auto-traits/auto-trait-validation.fixed new file mode 100644 index 000000000..da878ac62 --- /dev/null +++ b/tests/ui/auto-traits/auto-trait-validation.fixed @@ -0,0 +1,13 @@ +#![feature(auto_traits)] + +// run-rustfix + +auto trait Generic {} +//~^ auto traits cannot have generic parameters [E0567] +auto trait Bound {} +//~^ auto traits cannot have super traits or lifetime bounds [E0568] +auto trait LifetimeBound {} +//~^ auto traits cannot have super traits or lifetime bounds [E0568] +auto trait MyTrait { } +//~^ auto traits cannot have associated items [E0380] +fn main() {} |