File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() {
28
28
let magenta = annotate_snippets:: renderer:: AnsiColor :: Magenta
29
29
. on_default ( )
30
30
. effects ( Effects :: BOLD ) ;
31
- let title = format ! (
31
+ let message = format ! (
32
32
"expected fn pointer `{}for<'a>{} fn(Box<{}(dyn Any + Send + 'a){}>) -> Pin<_>`
33
33
found fn item `fn(Box<{}(dyn Any + Send + 'static){}>) -> Pin<_> {}{{wrapped_fn}}{}`" ,
34
34
magenta. render( ) ,
@@ -57,7 +57,7 @@ fn main() {
57
57
. label ( "arguments to this function are incorrect" ) ,
58
58
) ,
59
59
)
60
- . element ( Level :: NOTE . pre_styled_title ( & title ) ) ,
60
+ . element ( Level :: NOTE . pre_styled_title ( & message ) ) ,
61
61
Group :: with_title ( Level :: NOTE . title ( "function defined here" ) ) . element (
62
62
Snippet :: source ( source)
63
63
. path ( "$DIR/highlighting.rs" )
You can’t perform that action at this time.
0 commit comments