about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-05-05 17:35:28 -0400
committerGitHub <noreply@github.com>2017-05-05 17:35:28 -0400
commit9b2aacfdbe9569666d2d723bcde78ba3deef41a0 (patch)
tree31e1e5d12193f74ac7e7d34c3bbd79cc4c93cc9b /src/test/incremental/thinlto
parentecd7b48b25740160a6b8942085e8417acf7ebb28 (diff)
parenta9d3b3498e20a926d5b1662eb576d7db230ca110 (diff)
downloadrust-9b2aacfdbe9569666d2d723bcde78ba3deef41a0.tar.gz
rust-9b2aacfdbe9569666d2d723bcde78ba3deef41a0.zip
Rollup merge of #41722 - F001:warnTilde, r=petrochenkov
Suggest `!` for bitwise negation when encountering a `~`

Fix #41679

Here is a program

```rust
fn main() {
    let x = ~1;
}
```

It's output:
```
error: `~` can not be used as an unary operator
 --> /home/fcc/temp/test.rs:4:13
  |
4 |     let x = ~1;
  |             ^^
  |
  = help: use `!` instead of `~` if you meant to bitwise negation
```

cc @bstrie
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions