-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-type-changing-struct-update`#![feature(type_changing_struct_update)]``#![feature(type_changing_struct_update)]`
Description
In the crater run #98456, fajita
crate regression exhibited inference failure. Here's a minimal repro:
// when feature gate is enabled below, the compilation fails.
#![feature(type_changing_struct_update)]
#[derive(Default)]
pub struct Foo<P, T> {
pub t: T,
pub v: P
}
impl<P: Default, T:Default> Foo<P, T> {
pub fn o(t: T) -> Self {
Foo { t, ..Default::default() }
}
}
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-type-changing-struct-update`#![feature(type_changing_struct_update)]``#![feature(type_changing_struct_update)]`