This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! HTTP status codes. | |
| use std::fmt; | |
| use std::mem::transmute; | |
| use std::num::{FromPrimitive, ToPrimitive}; | |
| use std::cmp::Ordering; | |
| pub use self::StatusCode::*; | |
| pub use self::StatusClass::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Compiling language-tags v0.0.1 (file:///home/michael/Dokumente/git/rust-language-tags) | |
| src/language.rs:26:5: 26:17 error: expected a literal | |
| src/language.rs:26 Language::Ar => "ar", | |
| ^~~~~~~~~~~~ | |
| src/lib.rs:1:1: 462:1 note: in expansion of phf_map! | |
| src/language.rs:25:62: 31:3 note: expansion site | |
| src/language.rs:27:5: 27:17 error: expected a literal | |
| src/language.rs:27 Language::De => "de", | |
| ^~~~~~~~~~~~ | |
| src/lib.rs:1:1: 462:1 note: in expansion of phf_map! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[plugin] #[no_link] | |
| extern crate phf_macros; | |
| extern crate phf; | |
| use std::fmt; | |
| use std::str::FromStr; | |
| use std::ascii::AsciiExt; | |
| #[derive(Clone, Debug, PartialOrd, PartialEq)] | |
| pub enum Language { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let testvector = vec![1, 2, 3]; | |
| let a: int = testvector[-1]; | |
| println!("{}", a); | |
| } | |
| /* The output: | |
| task '<main>' panicked at 'index out of bounds: the len is 3 but the index is 18446744073709551615', /xxxx/src/main.rs:1 | |
| */ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ***@***-***:~/src/github.com/syncthing/syncthing$ go run build.go | |
| go get -v code.google.com/p/go.tools/cmd/cover | |
| code.google.com/p/go.tools (download) | |
| code.google.com/p/go.tools/cover | |
| code.google.com/p/go.tools/cmd/cover | |
| go install code.google.com/p/go.tools/cmd/cover: open /usr/local/go/pkg/tool/linux_amd64/cover: permission denied | |
| exit status 1 | |
| exit status 1 |
NewerOlder