|
| 1 | +error: expected parameter name, found `{` |
| 2 | + --> $DIR/feature-gate-view-types.rs:8:20 |
| 3 | + | |
| 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 |
| 9 | + | |
| 10 | +LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
| 11 | + | ^ |
| 12 | + | | |
| 13 | + | expected one of `!`, `(`, `)`, `,`, `::`, or `<` |
| 14 | + | help: missing `,` |
| 15 | + |
| 16 | +error: expected parameter name, found `{` |
| 17 | + --> $DIR/feature-gate-view-types.rs:8:39 |
| 18 | + | |
| 19 | +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 |
| 24 | + | |
| 25 | +LL | fn bar(a: &mut Foo.{ a }, b: &mut Foo.{ b }) { |
| 26 | + | ^ |
| 27 | + | | |
| 28 | + | expected one of `!`, `(`, `)`, `,`, `::`, or `<` |
| 29 | + | help: missing `,` |
| 30 | + |
| 31 | +error[E0061]: this function takes 4 arguments but 2 arguments were supplied |
| 32 | + --> $DIR/feature-gate-view-types.rs:15:5 |
| 33 | + | |
| 34 | +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 | + | +++++++++++++++++++++++++ |
| 46 | + |
| 47 | +error: aborting due to 5 previous errors |
| 48 | + |
| 49 | +For more information about this error, try `rustc --explain E0061`. |
0 commit comments