File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/test/ui/rfc-2361-dbg-macro Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ fn test() {
3333 // We can move `b` because it's Copy.
3434 drop ( b) ;
3535
36+ // Without parameters works as expected.
37+ let _: ( ) = dbg ! ( ) ;
38+
3639 // Test that we can borrow and that successive applications is still identity.
3740 let a = NoCopy ( 1337 ) ;
3841 let b: & NoCopy = dbg ! ( dbg!( & a) ) ;
@@ -69,17 +72,19 @@ fn validate_stderr(stderr: Vec<String>) {
6972 " y: 24" ,
7073 "}" ,
7174
72- ":38] &a = NoCopy(" ,
75+ ":37]" ,
76+
77+ ":41] &a = NoCopy(" ,
7378 " 1337" ,
7479 ")" ,
7580
76- ":38 ] dbg!(& a) = NoCopy(" ,
81+ ":41 ] dbg!(& a) = NoCopy(" ,
7782 " 1337" ,
7883 ")" ,
79- ":43 ] f(&42) = 42" ,
84+ ":46 ] f(&42) = 42" ,
8085
8186 "before" ,
82- ":48 ] { foo += 1; eprintln!(\" before\" ); 7331 } = 7331" ,
87+ ":51 ] { foo += 1; eprintln!(\" before\" ); 7331 } = 7331" ,
8388 ] ) ;
8489}
8590
You can’t perform that action at this time.
0 commit comments