File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 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+
18//@ run-pass
2- // Issue 483 - Assignment expressions result in nil
39
410fn test_assign ( ) {
511 let mut x: isize ;
@@ -27,4 +33,7 @@ fn test_assign_op() {
2733 assert_eq ! ( z, ( ) ) ;
2834}
2935
30- pub fn main ( ) { test_assign ( ) ; test_assign_op ( ) ; }
36+ pub fn main ( ) {
37+ test_assign ( ) ;
38+ test_assign_op ( ) ;
39+ }
You can’t perform that action at this time.
0 commit comments