about summary refs log tree commit diff
path: root/tests/ui/typeck/span-bug-issue-121410.rs
blob: 324b398d74f773060de21bc5208fafbd3568d65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn test_missing_unsafe_warning_on_repr_packed() {
    struct Foo {
        x: String,
    }

    let foo = Foo { x: String::new() };

    let c = || {
        let (_, t2) = foo.x; //~ ERROR mismatched types
    };

    c();
}

fn main() {}