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