summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-simple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/regions-simple.rs')
-rw-r--r--tests/ui/regions/regions-simple.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/regions/regions-simple.rs b/tests/ui/regions/regions-simple.rs
new file mode 100644
index 000000000..fff1b47f5
--- /dev/null
+++ b/tests/ui/regions/regions-simple.rs
@@ -0,0 +1,7 @@
+// run-pass
+pub fn main() {
+ let mut x: isize = 3;
+ let y: &mut isize = &mut x;
+ *y = 5;
+ println!("{}", *y);
+}