blob: 2e0179fb164ef8c1c72a5bf4620c6027f904be24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// ICE 'broken MIR: bad assignment: NoSolution'
// on trait with default method and no impls
// issue: rust-lang/rust#109869
trait Empty<T> {}
impl<T> Default for dyn Empty<T>
where
Self: Sized,
{
fn default() -> Self {
()
//~^ ERROR mismatched types
}
}
pub fn main() {}
|