diff options
Diffstat (limited to 'tests/ui/auto-traits/issue-23080-2.rs')
-rw-r--r-- | tests/ui/auto-traits/issue-23080-2.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/auto-traits/issue-23080-2.rs b/tests/ui/auto-traits/issue-23080-2.rs new file mode 100644 index 000000000..cb4cf6de1 --- /dev/null +++ b/tests/ui/auto-traits/issue-23080-2.rs @@ -0,0 +1,13 @@ +#![feature(auto_traits)] +#![feature(negative_impls)] + +unsafe auto trait Trait { + type Output; //~ ERROR E0380 +} + +fn call_method<T: Trait>(x: T) {} + +fn main() { + // ICE + call_method(()); +} |