2023-03-06 13:45:03 -06:00
|
|
|
//@ check-pass
|
2023-12-14 06:11:28 -06:00
|
|
|
//@ compile-flags: -Znext-solver
|
2023-03-06 13:45:03 -06:00
|
|
|
|
2023-04-21 19:08:38 -05:00
|
|
|
// HIR typeck ends up equating `<?0i as Add>::Output == ?0i`.
|
2023-03-06 13:45:03 -06:00
|
|
|
// Want to make sure that we emit an alias-eq goal for this,
|
|
|
|
// instead of treating it as a type error and bailing.
|
|
|
|
|
|
|
|
fn test() {
|
|
|
|
// fallback
|
|
|
|
let x = 1 + 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test2() -> u32 {
|
|
|
|
// expectation from return ty
|
|
|
|
1 + 2
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|