Changed test for issue 56202 to compile-pass.

This commit is contained in:
Alexander Regueiro 2018-11-30 02:55:22 +00:00
parent 027bf8b4de
commit 5f19cdc4f8
2 changed files with 4 additions and 7 deletions

View file

@ -1,3 +1,5 @@
// compile-pass
#![feature(self_struct_ctor)]
trait FooTrait {}
@ -13,3 +15,5 @@ impl BarTrait for FooStruct {
Self(u32::default())
}
}
fn main() {}

View file

@ -1,7 +0,0 @@
error[E0601]: `main` function not found in crate `issue_56202`
|
= note: consider adding a `main` function to `$DIR/issue-56202.rs`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0601`.