diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2016-06-22 18:29:16 -0700 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2017-01-03 10:05:20 -0500 |
| commit | 0d395841fc5141462c88a4167b2f675405d3a8eb (patch) | |
| tree | 5727fbea89c31e0ed9681c89f3e4fd442e220ab7 /src/test/incremental/thinlto | |
| parent | 8f62c2920077eb5cb81323142fc5dbe6ae8813c0 (diff) | |
| download | rust-0d395841fc5141462c88a4167b2f675405d3a8eb.tar.gz rust-0d395841fc5141462c88a4167b2f675405d3a8eb.zip | |
Detect double reference when applying binary op
```rust
let vr = v.iter().filter(|x| {
x % 2 == 0
});
```
will now yield the following compiler output:
```bash
ERROR binary operation `%` cannot be applied to type `&&_`
NOTE this is a reference of a reference to a type that `%` can be applied to,
you need to dereference this variable once for this operation to work
NOTE an implementation of `std::ops::Rem` might be missing for `&&_`
```
The first NOTE is new.
Bug #33877
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
