mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
15 lines
246 B
Rust
15 lines
246 B
Rust
#![deny(refining_impl_trait)]
|
|
|
|
trait FromRow {
|
|
fn prepare(self) -> impl Fn() -> T;
|
|
//~^ ERROR cannot find type `T` in this scope
|
|
}
|
|
|
|
impl<T> FromRow for T {
|
|
fn prepare(self) -> impl Fn() -> T {
|
|
|| todo!()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|