]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-3214.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-3214.rs
1 // ignore-tidy-linelength
2
3 fn foo<T>() {
4 struct Foo {
5 x: T, //~ ERROR can't use generic parameters from outer function
6 }
7
8 impl<T> Drop for Foo<T> {
9 //~^ ERROR this struct takes 0 type arguments but 1 type argument was supplied
10 //~| ERROR the type parameter `T` is not constrained by the impl trait, self type, or predicates
11 fn drop(&mut self) {}
12 }
13 }
14 fn main() { }