rust/tests/ui/type-alias-impl-trait/nested-impl-trait-in-tait.rs

10 lines
300 B
Rust

#![feature(type_alias_impl_trait)]
pub type Tait = impl Iterator<Item = (&'db LocalKey, impl Iterator)>;
//~^ ERROR use of undeclared lifetime name `'db`
//~| ERROR cannot find type `LocalKey` in this scope
//~| ERROR unconstrained opaque type
//~| ERROR unconstrained opaque type
pub fn main() {}