summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/trait-objects.rs
blob: 144d9788b82e6c558b69f355adedb6d2e2d1eb36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass
// compile-flags: -Z trait-solver=chalk

use std::fmt::Display;

fn main() {
    let d: &dyn Display = &mut 3;
    d.to_string();
    (&d).to_string();
    let f: &dyn Fn(i32) -> _ = &|x| x + x;
    f(2);
}