File tree 2 files changed +19
-2
lines changed 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -135,14 +135,14 @@ macro_rules! eprint {
135
135
#[ cfg( not( feature = "concrete_playback" ) ) ]
136
136
#[ macro_export]
137
137
macro_rules! println {
138
- ( ) => { } ;
138
+ ( ) => { $crate :: print! ( " \n " ) } ;
139
139
( $( $x: tt) * ) => { { let _ = format_args!( $( $x) * ) ; } } ;
140
140
}
141
141
142
142
#[ cfg( not( feature = "concrete_playback" ) ) ]
143
143
#[ macro_export]
144
144
macro_rules! eprintln {
145
- ( ) => { } ;
145
+ ( ) => { $crate :: eprint! ( " \n " ) } ;
146
146
( $( $x: tt) * ) => { { let _ = format_args!( $( $x) * ) ; } } ;
147
147
}
148
148
Original file line number Diff line number Diff line change
1
+ // Copyright Kani Contributors
2
+ // SPDX-License-Identifier: Apache-2.0 OR MIT
3
+
4
+ // This test checks that the (e)println with no arguments do not require a trailing semicolon
5
+
6
+ fn println ( ) {
7
+ println ! ( )
8
+ }
9
+ fn eprintln ( ) {
10
+ eprintln ! ( )
11
+ }
12
+
13
+ #[ kani:: proof]
14
+ fn main ( ) {
15
+ println ( ) ;
16
+ eprintln ( ) ;
17
+ }
You can’t perform that action at this time.
0 commit comments