about summary refs log tree commit diff
path: root/tests/ui/coercion/coerce-box-new-to-unboxed.rs
blob: 63ff0fc4e2381865fa2651398e093d3b4dc2714a (plain)
1
2
3
4
fn main() {
    let _: String = Box::new(String::new());
    //~^ ERROR mismatched types
}