]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-3214.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / 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 //~| ERROR the type parameter `T` is not constrained by the impl trait, self type, or predicates
9 fn drop(&mut self) {}
10 }
11 }
12 fn main() { }