You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the code below. When compiled with rustc --test thetest.rs the test suite's code is not run, and the start function is run instead.
use std::rt;// Compiled with --test it prints Oops!#[start]fnstart(argc:int,argv:**u8,crate_map:*u8) -> int{
do rt::start_on_main_thread(argc, argv, crate_map){println("Oops!")}}