// Regression test of #43913. // run-rustfix #![feature(trait_alias)] #![allow(bare_trait_objects, dead_code)] trait Strings = Iterator; struct Struct(S); //~^ ERROR: expected trait, found type alias `Strings` fn main() {}