]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/attribute-spans-preserved.stderr
Point at type in `let` assignment on type errors
[rust.git] / src / test / ui / proc-macro / attribute-spans-preserved.stderr
1 error[E0308]: mismatched types
2   --> $DIR/attribute-spans-preserved.rs:7:23
3    |
4 LL | #[ foo ( let y: u32 = "z"; ) ]
5    |                 ---   ^^^ expected `u32`, found `&str`
6    |                 |
7    |                 expected due to this
8
9 error[E0308]: mismatched types
10   --> $DIR/attribute-spans-preserved.rs:8:23
11    |
12 LL | #[ bar { let x: u32 = "y"; } ]
13    |                 ---   ^^^ expected `u32`, found `&str`
14    |                 |
15    |                 expected due to this
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0308`.