diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-12187-1.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-12187-1.stderr b/src/test/ui/issues/issue-12187-1.stderr new file mode 100644 index 000000000..806b7f0ac --- /dev/null +++ b/src/test/ui/issues/issue-12187-1.stderr @@ -0,0 +1,14 @@ +error[E0282]: type annotations needed for `&T` + --> $DIR/issue-12187-1.rs:6:9 + | +LL | let &v = new(); + | ^^ + | +help: consider giving this pattern a type, where the placeholders `_` are specified + | +LL | let &v: &T = new(); + | ++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0282`. |