From 67cdcc2e12118becb823e20a40cc2687f2b8425a Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Wed, 27 Mar 2019 15:32:37 -0400 Subject: Started Rust in Action MEAP. --- advanced/adv-types/Cargo.lock | 4 ---- advanced/adv-types/Cargo.toml | 7 ------- advanced/adv-types/src/main.rs | 41 ----------------------------------------- 3 files changed, 52 deletions(-) delete mode 100644 advanced/adv-types/Cargo.lock delete mode 100644 advanced/adv-types/Cargo.toml delete mode 100644 advanced/adv-types/src/main.rs (limited to 'advanced/adv-types') diff --git a/advanced/adv-types/Cargo.lock b/advanced/adv-types/Cargo.lock deleted file mode 100644 index a7ad78b..0000000 --- a/advanced/adv-types/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "adv-types" -version = "0.1.0" - diff --git a/advanced/adv-types/Cargo.toml b/advanced/adv-types/Cargo.toml deleted file mode 100644 index a3ca211..0000000 --- a/advanced/adv-types/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "adv-types" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/advanced/adv-types/src/main.rs b/advanced/adv-types/src/main.rs deleted file mode 100644 index 60d42b2..0000000 --- a/advanced/adv-types/src/main.rs +++ /dev/null @@ -1,41 +0,0 @@ -//use std::io::Error; -//use std::fmt; - -//pub trait Write { -// -// fn write(&mut self, buf: &[u8]) -> Result; -// fn flush(&mut self) -> Result<(), Error>; -// -// fn write_all(&mut self, buf: &[u8]) -> Result<()>; -// fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<()>; -//} - -//fn main() { -// type Miles = i32; -// -// let x: i32 = 5; -// let y: Miles = 5; -// -// println!("x + y = {}", x + y); - - -//} - -//type Thunk = Box; -// -//let f: Thunk = Box::new(|| println!("hi")); -// -//fn takes_long_type(f: Thunk) { -//} -// -//fn returns_long_type() -> Thunk { -//} - -fn main() { - print!("forever"); - - loop { - print!("and ever "); - } -} - -- cgit v1.2.3