|
1 | | -error: expected parameter name, found `{` |
2 | | - --> $DIR/feature-gate-view-types.rs:8:20 |
| 1 | +error[E0658]: view types are experimental |
| 2 | + --> $DIR/feature-gate-view-types.rs:6:19 |
3 | 3 | | |
4 | 4 | LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
5 | | - | ^ expected parameter name |
6 | | - |
7 | | -error: expected one of `!`, `(`, `)`, `,`, `::`, or `<`, found `.` |
8 | | - --> $DIR/feature-gate-view-types.rs:8:19 |
| 5 | + | ^^^^^^ |
9 | 6 | | |
10 | | -LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
11 | | - | ^ |
12 | | - | | |
13 | | - | expected one of `!`, `(`, `)`, `,`, `::`, or `<` |
14 | | - | help: missing `,` |
| 7 | + = note: see issue #155938 <https://github.com/rust-lang/rust/issues/155938> for more information |
| 8 | + = help: add `#![feature(view_types)]` to the crate attributes to enable |
| 9 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
15 | 10 |
|
16 | | -error: expected parameter name, found `{` |
17 | | - --> $DIR/feature-gate-view-types.rs:8:39 |
| 11 | +error[E0658]: view types are experimental |
| 12 | + --> $DIR/feature-gate-view-types.rs:6:38 |
18 | 13 | | |
19 | 14 | LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
20 | | - | ^ expected parameter name |
21 | | - |
22 | | -error: expected one of `!`, `(`, `)`, `,`, `::`, or `<`, found `.` |
23 | | - --> $DIR/feature-gate-view-types.rs:8:38 |
| 15 | + | ^^^^^^ |
24 | 16 | | |
25 | | -LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
26 | | - | ^ |
27 | | - | | |
28 | | - | expected one of `!`, `(`, `)`, `,`, `::`, or `<` |
29 | | - | help: missing `,` |
| 17 | + = note: see issue #155938 <https://github.com/rust-lang/rust/issues/155938> for more information |
| 18 | + = help: add `#![feature(view_types)]` to the crate attributes to enable |
| 19 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
30 | 20 |
|
31 | | -error[E0061]: this function takes 4 arguments but 2 arguments were supplied |
32 | | - --> $DIR/feature-gate-view-types.rs:15:5 |
| 21 | +error[E0499]: cannot borrow `foo` as mutable more than once at a time |
| 22 | + --> $DIR/feature-gate-view-types.rs:15:19 |
33 | 23 | | |
34 | 24 | LL | bar(&mut foo, &mut foo); |
35 | | - | ^^^-------------------- two arguments are missing |
36 | | - | |
37 | | -note: function defined here |
38 | | - --> $DIR/feature-gate-view-types.rs:8:4 |
39 | | - | |
40 | | -LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
41 | | - | ^^^ ----------------- |
42 | | -help: provide the arguments |
43 | | - | |
44 | | -LL | bar(&mut foo, &mut foo, /* &mut Foo */, /* _ */); |
45 | | - | +++++++++++++++++++++++++ |
| 25 | + | --- -------- ^^^^^^^^ second mutable borrow occurs here |
| 26 | + | | | |
| 27 | + | | first mutable borrow occurs here |
| 28 | + | first borrow later used by call |
46 | 29 |
|
47 | | -error: aborting due to 5 previous errors |
| 30 | +error: aborting due to 3 previous errors |
48 | 31 |
|
49 | | -For more information about this error, try `rustc --explain E0061`. |
| 32 | +Some errors have detailed explanations: E0499, E0658. |
| 33 | +For more information about an error, try `rustc --explain E0499`. |
0 commit comments