diff options
Diffstat (limited to 'tests/ui/resolve/issue-12796.rs')
-rw-r--r-- | tests/ui/resolve/issue-12796.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-12796.rs b/tests/ui/resolve/issue-12796.rs new file mode 100644 index 000000000..942d6b9a5 --- /dev/null +++ b/tests/ui/resolve/issue-12796.rs @@ -0,0 +1,9 @@ +trait Trait { + fn outer(&self) { + fn inner(_: &Self) { + //~^ ERROR can't use generic parameters from outer function + } + } +} + +fn main() { } |