rust/tests/ui/argument-suggestions/display-is-suggestable.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
157 B
Rust
Raw Normal View History

2022-12-12 13:23:20 -06:00
use std::fmt::Display;
fn foo(x: &(dyn Display + Send)) {}
fn main() {
foo();
//~^ ERROR function takes 1 argument but 0 arguments were supplied
2022-12-12 13:23:20 -06:00
}