diff options
| author | Caio <c410.f3r@gmail.com> | 2021-11-14 14:38:42 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-11-14 14:38:42 -0300 |
| commit | ab5434f9b8d3937fe33f813b3f8e1a43a4657781 (patch) | |
| tree | 382869ba24cd359543b11a5440b6b9c04c0574dd /src/test/ui/borrowck/lazy-init.rs | |
| parent | f820d9d4e5af7d298ffdc3145b48e206b65e8e28 (diff) | |
| download | rust-ab5434f9b8d3937fe33f813b3f8e1a43a4657781.tar.gz rust-ab5434f9b8d3937fe33f813b3f8e1a43a4657781.zip | |
Move some tests to more reasonable directories
Diffstat (limited to 'src/test/ui/borrowck/lazy-init.rs')
| -rw-r--r-- | src/test/ui/borrowck/lazy-init.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/lazy-init.rs b/src/test/ui/borrowck/lazy-init.rs new file mode 100644 index 00000000000..a4b5d18bb33 --- /dev/null +++ b/src/test/ui/borrowck/lazy-init.rs @@ -0,0 +1,8 @@ +// run-pass + +#![allow(unused_mut)] + + +fn foo(x: isize) { println!("{}", x); } + +pub fn main() { let mut x: isize; if 1 > 2 { x = 12; } else { x = 10; } foo(x); } |
