Changed test for issue 56202 to compile-pass.
This commit is contained in:
parent
027bf8b4de
commit
5f19cdc4f8
2 changed files with 4 additions and 7 deletions
|
@ -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() {}
|
||||
|
|
|
@ -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`.
|
Loading…
Add table
Reference in a new issue