Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

Rust

Compiler

rust 1.18.0

Options

Author

anonymous

almost 7 years ago

$ rust prog.rs
error[E0277]: the trait bound `&[f64]: std::ops::Index<usize>` is not satisfied
  --> prog.rs:12:10
   |
12 | 	let r = func(&s);
   | 	        ^^^^ the trait `std::ops::Index<usize>` is not implemented for `&[f64]`
   |
   = note: the type `&[f64]` cannot be indexed by `usize`
   = note: required by `func`

error: aborting due to previous error

Exit Code:
101