summary refs log tree commit diff
path: root/src/test/compile-fail/binary-op-on-double-ref.rs
AgeCommit message (Collapse)AuthorLines
2017-02-09change span_notes to notes in E0368/E0369Alex Burka-1/+1
2017-01-03Ensure type is copyable before emitting note suggesting adding manual deref.Felix S. Klock II-2/+2
drive-by: fix merge conflict; fix test expected error output post rebase.
2017-01-03Detect double reference when applying binary opEsteban Küber-0/+20
```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