diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2016-10-26 20:51:49 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2016-11-08 14:17:18 -0800 |
| commit | 3edb4fc56345ba2d33a04e952e1d402b08bc676c (patch) | |
| tree | 417fc24e1e68f842d207b3738890876466cb6652 /src/test/incremental/thinlto | |
| parent | b5f6d7ec2d4e231b9ef0c8a9e8e7ec8a7f67d2ae (diff) | |
| download | rust-3edb4fc56345ba2d33a04e952e1d402b08bc676c.tar.gz rust-3edb4fc56345ba2d33a04e952e1d402b08bc676c.zip | |
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
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
