File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1+ #![ allow( internal_features) ]
2+
13#![ feature( impl_stability) ]
4+ #![ feature( trivial_bounds) ] // TODO: figure out what is this
5+
26
37pub trait Foo {
48 fn foo ( ) ;
@@ -10,3 +14,5 @@ pub struct Bar;
1014impl Foo for Bar {
1115 fn foo ( ) { }
1216}
17+
18+ fn main ( ) { }
Original file line number Diff line number Diff line change 11//@ aux-build:unstable_feature.rs
22
3- //#![feature(impl_stability)]
3+ #![ feature( impl_stability) ]
4+ #![ feature( trivial_bounds) ]
45
56extern crate unstable_feature;
67use unstable_feature:: { Foo , Bar } ;
78
8- fn main ( ) {
9- //#![unstable_feature_bound(feat_foo)]
9+ # [ unstable_feature_bound ( feat_foo ) ]
10+ fn main ( ) { //~ ERROR: `main` function is not allowed to have a `where` clause
1011 Bar :: foo ( ) ;
1112}
Original file line number Diff line number Diff line change 1- error: `unstable_feature_bound` expects a list of feature names
2- --> $DIR/unstable-feature-bound.rs:14:1
1+ error[E0646] : `main` function is not allowed to have a `where` clause
2+ --> $DIR/unstable-feature-bound.rs:10:10
33 |
4- LL | #[unstable_feature_bound]
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^
4+ LL | fn main() {
5+ | ^ `main` cannot have a `where` clause
66
77error: aborting due to 1 previous error
88
9+ For more information about this error, try `rustc --explain E0646`.
You can’t perform that action at this time.
0 commit comments