rust/src/test
Eduard-Mihai Burtescu aa7eb65123 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.
2017-02-25 14:13:19 +02:00
..
codegen Rebase fixups 2017-02-10 19:47:09 +02:00
codegen-units trans: Treat generics like regular functions, not like #[inline] functions during CGU partitioning. 2017-01-09 10:06:58 -05:00
compile-fail Rollup merge of #39905 - estebank:useless-error, r=arielb1 2017-02-25 14:13:19 +02:00
compile-fail-fulldeps Refactor macro resolution errors + add derive macro suggestions 2017-02-16 22:03:15 +10:30
debuginfo Exclude top-level macro expansions from source location override. 2017-02-08 22:10:33 -08:00
incremental Auto merge of #39265 - est31:master, r=petrochenkov 2017-02-09 11:42:49 +00:00
mir-opt Rebase fixups 2017-02-10 19:47:09 +02:00
parse-fail Stabilize field init shorthand 2017-02-15 07:11:13 +01:00
pretty Update pretty test for derive attributes 2017-02-05 12:22:29 +10:30
run-fail Warn when a #[should_panic] test has an unexpected message 2016-11-18 21:01:19 +10:30
run-fail-fulldeps Fix fallout in rustdoc and tests. 2016-11-21 12:16:46 +00:00
run-make Rollup merge of #39864 - cramertj:normalize-breaks, r=nikomatsakis 2017-02-25 14:13:16 +02:00
run-pass Rollup merge of #39864 - cramertj:normalize-breaks, r=nikomatsakis 2017-02-25 14:13:16 +02:00
run-pass-fulldeps Don't assume plugin-whitelisted attributes are proc macro attributes 2017-02-22 15:43:03 -08:00
run-pass-valgrind Removes FIXMEs related to #22405 2017-01-31 21:27:13 -05:00
rustdoc Rollup merge of #39654 - ollie27:rustdoc_attributes, r=GuillaumeGomez 2017-02-12 19:16:28 +01:00
ui Rollup merge of #39905 - estebank:useless-error, r=arielb1 2017-02-25 14:13:19 +02:00