This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
9491f18c5d
rust
/
src
/
test
/
ui
/
did_you_mean
/
issue-41679-tilde-bitwise-negation-attempt.rs
4 lines
75 B
Rust
Raw
Normal View
History
Unescape
Escape
Suggest `!` for bitwise negation when encountering a `~`
2017-05-03 01:31:47 -05:00
fn
main
(
)
{
in which some labels and notes are upgraded to structured suggestions (Meanwhile, a couple of parse-fail tests are moved to UI tests so that the reader can see the new output, and an existing UI test is given a more evocative name.)
2018-03-11 03:04:15 -05:00
let
x
=
~
1
;
//~ ERROR cannot be used as a unary operator
Suggest `!` for bitwise negation when encountering a `~`
2017-05-03 01:31:47 -05:00
}
Reference in New Issue
Copy Permalink