diff options
Diffstat (limited to 'tests/ui/auto-traits/issue-117789.rs')
-rw-r--r-- | tests/ui/auto-traits/issue-117789.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/auto-traits/issue-117789.rs b/tests/ui/auto-traits/issue-117789.rs new file mode 100644 index 000000000..0c30931a1 --- /dev/null +++ b/tests/ui/auto-traits/issue-117789.rs @@ -0,0 +1,7 @@ +#![deny(suspicious_auto_trait_impls)] + +auto trait Trait<P> {} //~ ERROR auto traits cannot have generic parameters +//~^ ERROR auto traits are experimental and possibly buggy +impl<P> Trait<P> for () {} + +fn main() {} |