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

fn main() {

    let a = {foo: 0i};

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