]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/span-preservation.stderr
f33245aec37201e031ddf1f5a4e0ac225822d219
[rust.git] / src / test / ui / proc-macro / span-preservation.stderr
1 error[E0308]: mismatched types
2    |
3    = note: expected type `()`
4               found type `{integer}`
5
6 error[E0308]: mismatched types
7   --> $DIR/span-preservation.rs:12:20
8    |
9 LL |     let x: usize = "hello";;;;;
10    |                    ^^^^^^^ expected usize, found reference
11    |
12    = note: expected type `usize`
13               found type `&'static str`
14
15 error[E0308]: mismatched types
16   --> $DIR/span-preservation.rs:18:29
17    |
18 LL |         Some(x) => { return x },
19    |                             ^ expected usize, found isize
20
21 error[E0308]: mismatched types
22   --> $DIR/span-preservation.rs:34:22
23    |
24 LL |     let x = Foo { a: 10isize };
25    |                      ^^^^^^^ expected usize, found isize
26
27 error[E0560]: struct `c::Foo` has no field named `b`
28   --> $DIR/span-preservation.rs:35:26
29    |
30 LL |     let y = Foo { a: 10, b: 10isize };
31    |                          ^ `c::Foo` does not have this field
32    |
33    = note: available fields are: `a`
34
35 error[E0308]: mismatched types
36   --> $DIR/span-preservation.rs:48:5
37    |
38 LL | extern "C" fn baz() {
39    |                     - possibly return type missing here?
40 LL |     0
41    |     ^ expected (), found integral variable
42    |
43    = note: expected type `()`
44               found type `{integer}`
45
46 error: aborting due to 6 previous errors
47
48 Some errors occurred: E0308, E0560.
49 For more information about an error, try `rustc --explain E0308`.