rust/tests/ui/consts/const-eval/const_prop_errors.rs
2023-01-11 09:32:08 +00:00

15 lines
183 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() {}