Skip to content

Instantly share code, notes, and snippets.

View phil-n's full-sized avatar

Phil N phil-n

  • Germany
View GitHub Profile
body {
color: #fff;
background: #404040;
}
th {
background-color: #606060;
}
th.headingpresenter {
use std::{error, fmt, convert, io, num};
use std::error::Error;
fn main() {
//let file = File::with_valid_content();
//let file = File::with_invalid_content();
let file = File::broken();
let num = get_num_from_file(&file);
match num {
use std::error;
use std::num;
use std::fmt;
use std::io;
fn main() {
let r = read_i32();
match r {
Ok(i) => println!("{}", i),
Err(e) => println!("{}", e)