mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
21 lines
929 B
Rust
21 lines
929 B
Rust
// Test expressions
|
|
|
|
fn foo() -> bool {
|
|
let boxed: Box<i32> = box 5;
|
|
let referenced = &5;
|
|
|
|
let very_long_variable_name = (a + first + simple + test);
|
|
let very_long_variable_name = (a + first + simple + test + AAAAAAAAAAAAA + BBBBBBBBBBBBBBBBB +
|
|
b + c);
|
|
|
|
let some_val = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa * bbbb /
|
|
(bbbbbb - function_call(x, *very_long_pointer, y)) + 1000;
|
|
|
|
some_ridiculously_loooooooooooooooooooooong_function(10000 * 30000000000 +
|
|
40000 / 1002200000000 - 50000 * sqrt(-1),
|
|
trivial_value);
|
|
(((((((((aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
|
|
a + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
|
|
aaaaa)))))))))
|
|
}
|