rust/tests/ui/consts/const-eval/const_prop_errors.rs
2024-02-16 20:02:50 +00:00

15 lines
184 B
Rust

//@ check-pass
pub trait Foo {
fn foo(self) -> u32;
}
impl<T> Foo for T {
fn foo(self) -> u32 {
fn bar<T>() { loop {} }
bar::<T> as u32
}
}
fn main() {}