Files
rust/src/libsyntax
Eduard-Mihai Burtescu bd9969fb11 Rollup merge of #37428 - estebank:generic-type-error-span, r=sanxiyn
Point to type argument span when used as trait

Given the following code:

``` rust
struct Foo<T: Clone>(T);

use std::ops::Add;

impl<T: Clone, Add> Add for Foo<T> {
  type Output = usize;

  fn add(self, rhs: Self) -> Self::Output {
    unimplemented!();
  }
}
```

present the following output:

``` nocode
error[E0404]: `Add` is not a trait
 --> file3.rs:5:21
  |
5 | impl<T: Clone, Add> Add for Okok<T> {
  |                ---  ^^^ expected trait, found type parameter
  |                |
  |                type parameter defined here
```

Fixes #35987.
2016-11-09 20:51:16 +02:00
..
2016-11-04 02:39:20 +00:00
2016-11-04 02:39:20 +00:00
2016-10-24 15:59:53 +02:00
2016-06-27 18:30:46 +00:00
2016-11-03 23:48:24 +00:00
2016-11-03 01:38:15 +03:00