2012-10-15 14:00:32 -05:00
|
|
|
fn foo<T>() {
|
2018-12-16 21:21:47 -06:00
|
|
|
struct Foo {
|
2019-02-07 07:59:59 -06:00
|
|
|
x: T, //~ ERROR can't use generic parameters from outer function
|
2012-11-14 00:22:37 -06:00
|
|
|
}
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
impl<T> Drop for Foo<T> {
|
2015-12-11 01:59:11 -06:00
|
|
|
//~^ ERROR wrong number of type arguments
|
2013-09-16 20:18:07 -05:00
|
|
|
fn drop(&mut self) {}
|
2012-10-15 14:00:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
fn main() { }
|