diff options
Diffstat (limited to 'src/test/ui/binding/let-destruct-ref.rs')
-rw-r--r-- | src/test/ui/binding/let-destruct-ref.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/binding/let-destruct-ref.rs b/src/test/ui/binding/let-destruct-ref.rs new file mode 100644 index 000000000..28d7294eb --- /dev/null +++ b/src/test/ui/binding/let-destruct-ref.rs @@ -0,0 +1,7 @@ +// run-pass + +pub fn main() { + let x = 3_usize; + let ref y = x; + assert_eq!(x, *y); +} |