diff options
Diffstat (limited to 'tests/ui/issues/issue-5997-struct.rs')
-rw-r--r-- | tests/ui/issues/issue-5997-struct.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-5997-struct.rs b/tests/ui/issues/issue-5997-struct.rs new file mode 100644 index 000000000..6cf510b0a --- /dev/null +++ b/tests/ui/issues/issue-5997-struct.rs @@ -0,0 +1,10 @@ +fn f<T>() -> bool { + struct S(T); //~ ERROR can't use generic parameters from outer function + + true +} + +fn main() { + let b = f::<isize>(); + assert!(b); +} |