mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
14 lines
305 B
Rust
14 lines
305 B
Rust
//~ ERROR the type `<() as StaticTy>::Item<'a>` does not fulfill the required lifetime
|
|
//@ compile-flags: -Znext-solver
|
|
// Regression test for rust-lang/trait-system-refactor-initiative#59
|
|
|
|
trait StaticTy {
|
|
type Item<'a>: 'static;
|
|
}
|
|
|
|
impl StaticTy for () {
|
|
type Item<'a> = &'a ();
|
|
}
|
|
|
|
fn main() {}
|