diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-3214.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3214.rs b/src/test/ui/issues/issue-3214.rs new file mode 100644 index 000000000..928a65938 --- /dev/null +++ b/src/test/ui/issues/issue-3214.rs @@ -0,0 +1,11 @@ +fn foo<T>() { + struct Foo { + x: T, //~ ERROR can't use generic parameters from outer function + } + + impl<T> Drop for Foo<T> { + //~^ ERROR this struct takes 0 generic arguments but 1 generic argument + fn drop(&mut self) {} + } +} +fn main() {} |