2025-08-21 15:45:40 +02:00
|
|
|
//@ compile-flags: -Znext-solver
|
2025-08-11 19:36:20 -04:00
|
|
|
#![feature(const_convert, never_type, const_trait_impl)]
|
2025-08-21 15:45:40 +02:00
|
|
|
|
2025-08-31 22:26:10 -04:00
|
|
|
const fn impls_from<T: [const] From<!>>() {}
|
2025-08-21 15:45:40 +02:00
|
|
|
|
|
|
|
|
const fn foo() {
|
|
|
|
|
// This previously ICE'd when encountering the reservation impl
|
|
|
|
|
// from the standard library.
|
|
|
|
|
impls_from::<()>();
|
|
|
|
|
//~^ ERROR the trait bound `(): From<!>` is not satisfied
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|