fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
362 B13 linesraw
1fn main() {
2    println!("Testing non erroneous option_take_on_temporary");
3    let mut option = Some(1);
4    let _ = Box::new(move || option.take().unwrap());
5
6    println!("Testing non erroneous option_take_on_temporary");
7    let x = Some(3);
8    x.as_ref();
9
10    println!("Testing erroneous option_take_on_temporary");
11    let x = Some(3);
12    x.as_ref();
13}