diff options
| author | bors <bors@rust-lang.org> | 2016-09-11 15:12:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-11 15:12:27 -0700 |
| commit | 0be88eb794949d27331ec45c300a40369b541001 (patch) | |
| tree | f57f3c24d72a7e1af6b75c471eb43ef362f5bfb0 /src/test/incremental/thinlto | |
| parent | 4812cf392f1fa2258033356dd872fbee58a5406e (diff) | |
| parent | fe41520fceb00427e797cc0b42f449f54967b104 (diff) | |
| download | rust-0be88eb794949d27331ec45c300a40369b541001.tar.gz rust-0be88eb794949d27331ec45c300a40369b541001.zip | |
Auto merge of #36308 - dtolnay:inputitem, r=alexcrichton
Point macros 1.1 errors to the input item
Moved from https://github.com/alexcrichton/rust/pull/6 to continue discussion. Fixes #36218.
Before:
```rust
error[E0106]: missing lifetime specifier
--> src/main.rs:10:10
|
10 | #[derive(Serialize, Deserialize)]
| ^ expected lifetime parameter
error[E0038]: the trait `T` cannot be made into an object
--> src/main.rs:15:15
|
15 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^^ the trait `T` cannot be made into an object
```
After:
```rust
error[E0106]: missing lifetime specifier
--> src/main.rs:11:1
|
11 | struct A {
| ^ expected lifetime parameter
error[E0038]: the trait `T` cannot be made into an object
--> src/main.rs:16:1
|
16 | struct B<'a> {
| ^ the trait `T` cannot be made into an object
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
