summary refs log tree commit diff
path: root/src/test/compile-fail/rec-extend.rs
blob: 15c55d09b02f8b0c43f08def8c53f56786dfb41a (plain)
1
2
3
4
5
6
7
8
// error-pattern:expected `int` but found `bool`

fn main() {

    let a = {foo: 0};

    let b = {foo: true with a};
}