mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 19:14:16 +00:00
edafbaffb2
- Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
7 lines
102 B
Rust
7 lines
102 B
Rust
// run-pass
|
|
// pretty-expanded FIXME #23616
|
|
|
|
fn f() { let x = (); return x; }
|
|
|
|
pub fn main() { f(); }
|