Skip to content

Instantly share code, notes, and snippets.

@shadowmint
Created August 30, 2014 07:37
Show Gist options
  • Save shadowmint/a35d7575b869aec71388 to your computer and use it in GitHub Desktop.
Save shadowmint/a35d7575b869aec71388 to your computer and use it in GitHub Desktop.
errors
dougs-Mac-mini:rust-array doug$ cargo test
Compiling array v0.1.6 (file:///Users/doug/dev/rust-array)
src/array.rs:140:64: 140:72 error: explicit lifetime bound required
src/array.rs:140 impl<'a, T: PartialEq + Clone + Default> Index<uint,T> for &'a Array<T> {
^~~~~~~~
src/array.rs:147:71: 147:79 error: explicit lifetime bound required
src/array.rs:147 impl<'a, T: PartialEq + Clone + Default> IndexMut<uint,T> for &'a mut Array<T> {
^~~~~~~~
src/view.rs:13:14: 13:22 error: explicit lifetime bound required
src/view.rs:13 parent:&'a Array<T>,
^~~~~~~~
src/view.rs:66:18: 66:26 error: explicit lifetime bound required
src/view.rs:66 parent:&'a mut Array<T>,
^~~~~~~~
error: aborting due to 4 previous errors
Build failed, waiting for other jobs to finish...
src/array.rs:140:64: 140:72 error: explicit lifetime bound required
src/array.rs:140 impl<'a, T: PartialEq + Clone + Default> Index<uint,T> for &'a Array<T> {
^~~~~~~~
src/array.rs:147:71: 147:79 error: explicit lifetime bound required
src/array.rs:147 impl<'a, T: PartialEq + Clone + Default> IndexMut<uint,T> for &'a mut Array<T> {
^~~~~~~~
src/view.rs:13:14: 13:22 error: explicit lifetime bound required
src/view.rs:13 parent:&'a Array<T>,
^~~~~~~~
src/view.rs:66:18: 66:26 error: explicit lifetime bound required
src/view.rs:66 parent:&'a mut Array<T>,
^~~~~~~~
error: aborting due to 4 previous errors
Could not compile `array`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment