Remove 'with'
This commit is contained in:
parent
ef880f2245
commit
200959d7ce
77 changed files with 404 additions and 419 deletions
|
|
@ -7,5 +7,5 @@ type point = {x: int, y: int};
|
|||
fn main() {
|
||||
let origin: point = {x: 0, y: 0};
|
||||
|
||||
let origin3d: point = {z: 0 with origin};
|
||||
let origin3d: point = {z: 0,.. origin};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ type point = {x: int, y: int};
|
|||
|
||||
fn main() {
|
||||
let mut origin: point;
|
||||
origin = {x: 10 with origin}; //~ ERROR use of possibly uninitialized variable: `origin`
|
||||
origin = {x: 10,.. origin}; //~ ERROR use of possibly uninitialized variable: `origin`
|
||||
copy origin;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ fn main() {
|
|||
|
||||
let a = {foo: 0i};
|
||||
|
||||
let b = {foo: true with a};
|
||||
let b = {foo: true,.. a};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ struct my_resource {
|
|||
fn main() {
|
||||
{
|
||||
let a = {x: 0, y: my_resource(20)};
|
||||
let b = {x: 2 with a};
|
||||
let b = {x: 2,.. a};
|
||||
log(error, (a, b));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue