summaryrefslogtreecommitdiffstats
path: root/src/test/ui/save-analysis/issue-72267.rs
blob: eea0a7fea0cefcc94b8074dae1c98840e9886000 (plain)
1
2
3
4
5
6
7
// compile-flags: -Z save-analysis

fn main() {
    let _: Box<(dyn ?Sized)>;
    //~^ ERROR `?Trait` is not permitted in trait object types
    //~| ERROR at least one trait is required for an object type
}