diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-01-13 11:40:44 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-01-13 11:40:44 -0800 |
| commit | d04c027e9333d632a9ee0dcfbdf0d79dfddf0318 (patch) | |
| tree | 4f64aa1c6ac78a9df90d97ac1ebc0c19de76370f /src/libstd | |
| parent | 27b9e6d450590751fca863312a8cf10f289cf1f2 (diff) | |
| download | rust-d04c027e9333d632a9ee0dcfbdf0d79dfddf0318.tar.gz rust-d04c027e9333d632a9ee0dcfbdf0d79dfddf0318.zip | |
Use multiline Diagnostic for "relevant impl" list
Provide the following output:
```
error[E0277]: the trait bound `Bar: Foo<usize>` is not satisfied
--> $DIR/issue-21659-show-relevant-trait-impls-2.rs:38:8
|
38 | f1.foo(1usize);
| ^^^ the trait `Foo<usize>` is not implemented for `Bar`
|
= help: the following implementations were found:
<Bar as Foo<i8>>
<Bar as Foo<i16>>
<Bar as Foo<i32>>
<Bar as Foo<u8>>
and 2 others
error: aborting due to previous error
```
instead of
```
error[E0277]: the trait bound `Bar: Foo<usize>` is not satisfied
--> $DIR/issue-21659-show-relevant-trait-impls-2.rs:38:8
|
38 | f1.foo(1usize);
| ^^^ the trait `Foo<usize>` is not implemented for `Bar`
|
= help: the following implementations were found:
= help: <Bar as Foo<i8>>
= help: <Bar as Foo<i16>>
= help: <Bar as Foo<i32>>
= help: <Bar as Foo<u8>>
= help: and 2 others
error: aborting due to previous error
```
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions
