// Tests that we consider `Box: !Sugar` to be ambiguous, even // though we see no impl of `Sugar` for `Box`. Therefore, an overlap // error is reported for the following pair of impls (#23516). pub trait Sugar {} struct Cake(X); impl Cake { fn dummy(&self) { } } //~^ ERROR E0592 impl Cake> { fn dummy(&self) { } } fn main() { }