rust/src/test/ui/consts/const-eval/const_prop_errors.rs

15 lines
220 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be 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() {}