]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-3214.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / issues / issue-3214.rs
1 fn foo<T>() {
2     struct Foo {
3         x: T, //~ ERROR can't use generic parameters from outer function
4     }
5
6     impl<T> Drop for Foo<T> {
7         //~^ ERROR this struct takes 0 generic arguments but 1 generic argument
8         fn drop(&mut self) {}
9     }
10 }
11 fn main() {}