Point compile-fail errors to the input item instead of the derive
This commit is contained in:
parent
3784067edc
commit
707a40f206
@ -23,8 +23,8 @@ trait Append {
|
||||
#[derive(PartialEq,
|
||||
Append,
|
||||
Eq)]
|
||||
//~^^ ERROR: the semantics of constant patterns is not yet settled
|
||||
struct A {
|
||||
//~^ ERROR: the semantics of constant patterns is not yet settled
|
||||
inner: u32,
|
||||
}
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
extern crate derive_unstable_2;
|
||||
|
||||
#[derive(Unstable)]
|
||||
//~^ ERROR: reserved for internal compiler
|
||||
struct A;
|
||||
//~^ ERROR: reserved for internal compiler
|
||||
|
||||
fn main() {
|
||||
foo();
|
||||
|
@ -17,8 +17,8 @@
|
||||
extern crate derive_unstable;
|
||||
|
||||
#[derive(Unstable)]
|
||||
//~^ ERROR: use of unstable library feature
|
||||
struct A;
|
||||
//~^ ERROR: use of unstable library feature
|
||||
|
||||
fn main() {
|
||||
unsafe { foo(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user