0eac640fdd
In 'rec(a = b with c)', if a exists in c then the expected type for b is the type of c.
10 lines
138 B
Rust
10 lines
138 B
Rust
// xfail-stage0
|
|
// error-pattern:expected int but found bool
|
|
|
|
fn main() {
|
|
|
|
auto a = rec(foo = 0);
|
|
|
|
auto b = rec(foo = true with a);
|
|
}
|