Skip to content

Instantly share code, notes, and snippets.

@chamakits
chamakits / playground.rs
Created November 2, 2015 05:51 — forked from anonymous/playground.rs
Shared via Rust Playground
fn main() {
let s = "abc".to_string();
{
//println!("{}", s);
//sfun(s);
}
match s {
_ => {println!("{}", s)}
}
@chamakits
chamakits / playground.rs
Created October 28, 2015 05:50 — forked from anonymous/playground.rs
Shared via Rust Playground
// open.rs
use std::error::Error;
use std::fs::File;
use std::io::prelude::*;
use std::path::Path;
use std::char;
fn main() {
let a = 'a' as u32;
let outer = 25;