rust/tests/ui/argument-suggestions/display-is-suggestable.rs
2023-01-11 09:32:08 +00:00

9 lines
157 B
Rust

use std::fmt::Display;
fn foo(x: &(dyn Display + Send)) {}
fn main() {
foo();
//~^ ERROR function takes 1 argument but 0 arguments were supplied
}