Skip to content

Instantly share code, notes, and snippets.

Phil N phil-n

  • Germany
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 {
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.