summary refs log tree commit diff
path: root/src/test/ui/parser/removed-syntax-with-2.stderr
blob: 5642d2f45ffce7a6ba73b7330f625147cb852163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error: expected one of `,` or `}`, found `a`
  --> $DIR/removed-syntax-with-2.rs:8:31
   |
LL |     let b = S { foo: (), with a };
   |                               ^ expected one of `,` or `}` here

error[E0425]: cannot find value `with` in this scope
  --> $DIR/removed-syntax-with-2.rs:8:26
   |
LL |     let b = S { foo: (), with a };
   |                          ^^^^ not found in this scope

error[E0560]: struct `main::S` has no field named `with`
  --> $DIR/removed-syntax-with-2.rs:8:26
   |
LL |     let b = S { foo: (), with a };
   |                          ^^^^ `main::S` does not have this field
   |
   = note: available fields are: `foo`, `bar`

error: aborting due to 3 previous errors

Some errors occurred: E0425, E0560.
For more information about an error, try `rustc --explain E0425`.