about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-02-25 14:13:19 +0200
committerGitHub <noreply@github.com>2017-02-25 14:13:19 +0200
commitaa7eb6512315ae3340969a53c9161e91361d074c (patch)
tree7bc553abd55e0f6e3972a3596f5d78d3492dbbec /src/test/incremental/thinlto
parenta6924177e4953eee1fa0ebcff59eede1684781eb (diff)
parent038a166e092ab5497dcb8e6785949a954d692cfd (diff)
downloadrust-aa7eb6512315ae3340969a53c9161e91361d074c.tar.gz
rust-aa7eb6512315ae3340969a53c9161e91361d074c.zip
Rollup merge of #39905 - estebank:useless-error, r=arielb1
Properly display note/expected details

Given a file

```rust
fn takes_cb(f: fn(i8)) {}

fn main() {
    fn callback(x: i32) {}
    takes_cb(callback)
}
```

output

```rust
error[E0308]: mismatched types
 --> file2.rs:5:22
  |
5 |             takes_cb(callback)
  |                      ^^^^^^^^ expected i8, found i32
  |
  = note: expected type `fn(i8)`
             found type `fn(i32) {main::callback}`
```

Fix #39343.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions