We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn f(*) {}
struct S { lol: u8 } impl S { fn f(*) -> u8 { self.lol } } fn main() { println!("{}", S{lol:10}.f()); }
prints 10 on stable/beta/nightly.
10
This is the coolest syntax I've seen this year, now I'll always use * instead of self to save 3 keystrokes.
*
self