diff options
Diffstat (limited to 'tests/ui/resolve/issue-3021-c.rs')
-rw-r--r-- | tests/ui/resolve/issue-3021-c.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-3021-c.rs b/tests/ui/resolve/issue-3021-c.rs new file mode 100644 index 000000000..94ed1fdf7 --- /dev/null +++ b/tests/ui/resolve/issue-3021-c.rs @@ -0,0 +1,9 @@ +fn siphash<T>() { + + trait U { + fn g(&self, x: T) -> T; //~ ERROR can't use generic parameters from outer function + //~^ ERROR can't use generic parameters from outer function + } +} + +fn main() {} |