mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
13 lines
289 B
Rust
13 lines
289 B
Rust
// Test that disallow lifetime parameters that are unused.
|
|
|
|
enum Foo<'a> { //~ ERROR parameter `'a` is never used
|
|
//~^ ERROR recursive types `Foo` and `Bar` have infinite size
|
|
Foo1(Bar<'a>)
|
|
}
|
|
|
|
enum Bar<'a> { //~ ERROR parameter `'a` is never used
|
|
Bar1(Foo<'a>)
|
|
}
|
|
|
|
fn main() {}
|