1
Fork 0

Merge cfail and ui tests into ui tests

This commit is contained in:
Oliver Schneider 2017-11-20 13:13:27 +01:00
commit 8937d6a6cf
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
670 changed files with 2198 additions and 2129 deletions

View file

@ -13,7 +13,13 @@ use std::fmt::Debug;
trait Foo {
fn bar(&self);
//~^ NOTE item in trait
//~| NOTE `bar` from trait
//~| NOTE item in trait
//~| NOTE `bar` from trait
const MY_CONST: u32;
//~^ NOTE item in trait
//~| NOTE `MY_CONST` from trait
}
pub struct FooConstForMethod;
@ -46,10 +52,15 @@ impl Foo for FooTypeForMethod {
type bar = u64;
//~^ ERROR E0325
//~| NOTE does not match trait
//~| NOTE not a member
//~| ERROR E0437
const MY_CONST: u32 = 1;
}
impl Debug for FooTypeForMethod {
}
//~^^ ERROR E0046
//~| NOTE missing `fmt` in implementation
//~| NOTE `fmt` from trait:
fn main () {}