mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add 1.0 rust sample and add file with extern crate usage
This commit is contained in:
2324
samples/Rust/hashmap.rs
Normal file
2324
samples/Rust/hashmap.rs
Normal file
File diff suppressed because it is too large
Load Diff
12
samples/Rust/main.rs
Normal file
12
samples/Rust/main.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
extern crate foo;
|
||||||
|
extern crate bar;
|
||||||
|
|
||||||
|
use foo::{self, quix};
|
||||||
|
use bar::car::*;
|
||||||
|
use bar;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
println!("Hello {}", "World");
|
||||||
|
|
||||||
|
panic!("Goodbye")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user