diff options
Diffstat (limited to 'tests/ui/static/static-reference-to-fn-1.stderr')
-rw-r--r-- | tests/ui/static/static-reference-to-fn-1.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/static/static-reference-to-fn-1.stderr b/tests/ui/static/static-reference-to-fn-1.stderr new file mode 100644 index 000000000..67b478bdb --- /dev/null +++ b/tests/ui/static/static-reference-to-fn-1.stderr @@ -0,0 +1,12 @@ +error[E0308]: mismatched types + --> $DIR/static-reference-to-fn-1.rs:17:15 + | +LL | func: &foo, + | ^^^^ expected fn pointer, found fn item + | + = note: expected reference `&fn() -> Option<isize>` + found reference `&fn() -> Option<isize> {foo}` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |