rust/src/test/ui/issues/issue-3214.rs

12 lines
243 B
Rust
Raw Normal View History

2012-10-15 14:00:32 -05:00
fn foo<T>() {
struct Foo {
x: T, //~ ERROR can't use generic parameters from outer function
}
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() { }