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
+
1
3
#![ feature( impl_stability) ]
4
+ #![ feature( trivial_bounds) ] // TODO: figure out what is this
5
+
2
6
3
7
pub trait Foo {
4
8
fn foo ( ) ;
@@ -10,3 +14,5 @@ pub struct Bar;
10
14
impl Foo for Bar {
11
15
fn foo ( ) { }
12
16
}
17
+
18
+ fn main ( ) { }
Original file line number Diff line number Diff line change 1
1
//@ aux-build:unstable_feature.rs
2
2
3
- //#![feature(impl_stability)]
3
+ #![ feature( impl_stability) ]
4
+ #![ feature( trivial_bounds) ]
4
5
5
6
extern crate unstable_feature;
6
7
use unstable_feature:: { Foo , Bar } ;
7
8
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
10
11
Bar :: foo ( ) ;
11
12
}
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
3
3
|
4
- LL | #[unstable_feature_bound]
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
4
+ LL | fn main() {
5
+ | ^ `main` cannot have a `where` clause
6
6
7
7
error: aborting due to 1 previous error
8
8
9
+ For more information about this error, try `rustc --explain E0646`.
You can’t perform that action at this time.
0 commit comments