It’s because it has to work in pattern contexts as well, which are not expressions.
- 0 Posts
- 3 Comments
Joined 2 years ago
Cake day: August 9th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
0v0@sopuli.xyzto Programming@programming.dev•Access unrestricted remote desktop from very restricted office network1·1 year agoYou can give chisel a try. It tunnels all traffic over http/https, and the client can then create port forwards, just as with ssh, to access other services.
fn foo(x: i32) { match x { const { 3.pow(3) } => println!("three cubed"), _ => {} } }
But it looks like
inline_const_pat
is still unstable, onlyinline_const
in expression position is now stabilized.