Skip to content

Instantly share code, notes, and snippets.

Starting program: ./f 5 < test
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb7202b40 (LWP 3605)]
[New Thread 0xb7101b40 (LWP 3606)]
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7202b40 (LWP 3605)]
Starting program: ./f < test
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb7202b40 (LWP 1574)]
task '<main>' failed at 'index out of bounds: the len is 1 but the index is 1', f.rs:17
[New Thread 0xb7101b40 (LWP 1576)]
[Thread 0xb7202b40 (LWP 1574) exited]
[Thread 0xb760e700 (LWP 1550) exited]
use std::rt::io::buffered::BufferedReader;
fn main() {
let s: uint = from_str(std::os::args()[1]).unwrap();
let mut reader = BufferedReader::new(std::rt::io::stdin());
match reader.read_line() {
None => (),
Some(line) => {
println(line);
}
main.rs:7:1: 7:11 error: type `ui::TBUI` does not implement any method in scope named `run`
main,rs:
pub mod ui;
pub mod level;
fn main() {
let ui = ui::TBUI;
let mut l = level::new();