Skip to content

Commit 6561cac

Browse files
committed
WIP: the test should not pass
1 parent 66622ad commit 6561cac

File tree

5 files changed

+31
-14
lines changed

5 files changed

+31
-14
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![feature(impl_stability)]
2+
3+
pub trait Foo {
4+
fn foo();
5+
}
6+
7+
pub struct Bar;
8+
9+
#[unstable_feature_bound(feat_foo)]
10+
impl Foo for Bar {
11+
fn foo() {}
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ aux-build:unstable_feature.rs
2+
3+
//#![feature(impl_stability)]
4+
5+
extern crate unstable_feature;
6+
use unstable_feature::{Foo, Bar};
7+
8+
fn main() {
9+
//#![unstable_feature_bound(feat_foo)]
10+
Bar::foo();
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: `unstable_feature_bound` expects a list of feature names
2+
--> $DIR/unstable-feature-bound.rs:14:1
3+
|
4+
LL | #[unstable_feature_bound]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6+
7+
error: aborting due to 1 previous error
8+

tests/ui/internal/unstable-feature.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/ui/internal/unstable-feature.stderr

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)