Open
Description
This currently passes compilation while it shouldn't:
#![feature(trait_alias)]
trait A = ?Sized + ?Sized; // should be rejected due to duplicate relaxed trait bounds
trait B = ?Iterator; // should be rejected since `Iterator` is not a default trait
// (also doesn't error if referenced — in case anyone was wondering)
//fn f<T: A + B>() {}