summary refs log tree commit diff
path: root/src/test/ui/proc-macro/span-preservation.stderr
blob: fbccde28f59b49a959acc148c55a4b660b6143bd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
error[E0308]: mismatched types
   |
   = note: expected type `()`
              found type `{integer}`

error[E0308]: mismatched types
  --> $DIR/span-preservation.rs:13:20
   |
LL |     let x: usize = "hello";;;;;
   |                    ^^^^^^^ expected usize, found reference
   |
   = note: expected type `usize`
              found type `&'static str`

error[E0308]: mismatched types
  --> $DIR/span-preservation.rs:19:29
   |
LL | fn b(x: Option<isize>) -> usize {
   |                           ----- expected `usize` because of return type
LL |     match x {
LL |         Some(x) => { return x },
   |                             ^ expected usize, found isize

error[E0308]: mismatched types
  --> $DIR/span-preservation.rs:35:22
   |
LL |     let x = Foo { a: 10isize };
   |                      ^^^^^^^ expected usize, found isize

error[E0560]: struct `c::Foo` has no field named `b`
  --> $DIR/span-preservation.rs:36:26
   |
LL |     let y = Foo { a: 10, b: 10isize };
   |                          ^ `c::Foo` does not have this field
   |
   = note: available fields are: `a`

error[E0308]: mismatched types
  --> $DIR/span-preservation.rs:49:5
   |
LL | extern "C" fn baz() {
   |                     - possibly return type missing here?
LL |     0
   |     ^ expected (), found integer
   |
   = note: expected type `()`
              found type `{integer}`

error: aborting due to 6 previous errors

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