Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
suggestions
/
use-parentheses-to-call-closure-issue-145404.fixed
blob: 2835743fca201bb9a8e8c0e672a541d7c80e3176 [
file
] [
log
] [
blame
]
//@ run-rustfix
use
std
::
fmt
::
Display
;
struct
S
;
impl S
{
fn call
(&
self
,
_
:
impl
Display
)
{}
}
fn main
()
{
S
.
call
((||
"hello"
)());
//~ ERROR [E0277]
}