blob: 14d21418ae853db0e24a4cc27a6c3b945a455334 [file] [log] [blame]
// ignore-compare-mode-chalk
trait Bug {
type Item: Bug;
const FUN: fn() -> Self::Item;
}
impl Bug for &() {
type Item = impl Bug; //~ ERROR `impl Trait` in type aliases is unstable
//~^ ERROR the trait bound `(): Bug` is not satisfied
//~^^ ERROR could not find defining uses
const FUN: fn() -> Self::Item = || ();
}
fn main() {}