sean@grunt:~/code$ rustc --test test.rs
<command line option> warning: use of unstable item: will be replaced by slice syntax, #[warn(unstable)] on by default
test.rs:1 pub struct Foo;
^
<command line option> warning: use of unstable item, #[warn(unstable)] on by default
test.rs:1 pub struct Foo;
^
<command line option> warning: use of unstable item, #[warn(unstable)] on by default
test.rs:1 pub struct Foo;
^
With a file like:
And then running
rustc --test test.rs, these warnings are inserted:cc @alexcrichton @aturon