diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-5997-struct.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-5997-struct.rs b/src/test/ui/issues/issue-5997-struct.rs new file mode 100644 index 000000000..6cf510b0a --- /dev/null +++ b/src/test/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); +} |