We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assign-assign.rs
1 parent 728f2da commit 73b00caCopy full SHA for 73b00ca
tests/ui/assign-assign.rs
@@ -1,5 +1,11 @@
1
+//! Regression test for [Using the result of an assignment expression results in an LLVM assert
2
+//! #483][issue-483]. This test checks that assignment expressions produce a unit type, and is
3
+//! properly lowered to LLVM IR such that it does not trigger an LLVM assertion. This test was added
4
+//! *really* early, back in 2011.
5
+//!
6
+//! [issue-483]: https://github.com/rust-lang/rust/issues/483
7
+
8
//@ run-pass
-// Issue 483 - Assignment expressions result in nil
9
10
fn test_assign() {
11
let mut x: isize;
@@ -27,4 +33,7 @@ fn test_assign_op() {
27
33
assert_eq!(z, ());
28
34
}
29
35
30
-pub fn main() { test_assign(); test_assign_op(); }
36
+pub fn main() {
37
+ test_assign();
38
+ test_assign_op();
39
+}
0 commit comments