about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2016-06-22 18:29:16 -0700
committerFelix S. Klock II <pnkfelix@pnkfx.org>2017-01-03 10:05:20 -0500
commit0d395841fc5141462c88a4167b2f675405d3a8eb (patch)
tree5727fbea89c31e0ed9681c89f3e4fd442e220ab7 /src/test/incremental/thinlto
parent8f62c2920077eb5cb81323142fc5dbe6ae8813c0 (diff)
downloadrust-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