mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 08:48:06 +00:00
14 lines
163 B
Rust
14 lines
163 B
Rust
//@ run-rustfix
|
|
|
|
use std::fmt::Display;
|
|
|
|
struct S;
|
|
|
|
impl S {
|
|
fn call(&self, _: impl Display) {}
|
|
}
|
|
|
|
fn main() {
|
|
S.call((|| "hello")()); //~ ERROR [E0277]
|
|
}
|