Skip to content

Instantly share code, notes, and snippets.

Phil N phil-n

  • Germany
Block or report user

Report or block phil-n

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View linqpad_dark.css
body {
color: #fff;
background: #404040;
}
th {
background-color: #606060;
}
th.headingpresenter {
View multi_error_conversion
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 {
View error_conversion.rs
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)
You can’t perform that action at this time.