diff options
Diffstat (limited to 'tests/ui/typeck/issue-104513-ice.rs')
-rw-r--r-- | tests/ui/typeck/issue-104513-ice.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/typeck/issue-104513-ice.rs b/tests/ui/typeck/issue-104513-ice.rs new file mode 100644 index 000000000..bcac0fa1e --- /dev/null +++ b/tests/ui/typeck/issue-104513-ice.rs @@ -0,0 +1,6 @@ +struct S; +fn f() { + let _: S<impl Oops> = S; //~ ERROR cannot find trait `Oops` in this scope + //~^ ERROR `impl Trait` only allowed in function and inherent method return types +} +fn main() {} |