We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 430327c commit 5d22359Copy full SHA for 5d22359
1 file changed
rust/src/main.rs
@@ -1,5 +1,14 @@
1
// system packages: rust-all rust-src
2
3
+fn main() {
4
+ // to stdout:
5
+ print!("output");
6
+ println!(" + new line");
7
+ // to stderr:
8
+ eprint!("error");
9
+ eprintln!(" + new line");
10
+}
11
+
12
#[test]
13
fn constants() {
14
fn func(arg: i32) -> i32 {
@@ -274,9 +283,3 @@ fn failing_test() {
274
283
assert!(false)
275
284
}
276
285
277
-fn main() {
278
- print!("output");
279
- println!(" + new line");
280
- eprint!("error");
281
- eprintln!(" + new line");
282
-}
0 commit comments