From 2d15f1ca42c39bb6982ebde8a84b4cda3c8f8874 Mon Sep 17 00:00:00 2001 From: Jack Huey <31162821+jackh726@users.noreply.github.com> Date: Sun, 10 Jul 2022 15:25:33 -0400 Subject: Don't try to resolve inference variables in WF computation, just register --- src/test/ui/issues/issue-98299.stderr | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/test') diff --git a/src/test/ui/issues/issue-98299.stderr b/src/test/ui/issues/issue-98299.stderr index a61bffa91e7..fd905392a21 100644 --- a/src/test/ui/issues/issue-98299.stderr +++ b/src/test/ui/issues/issue-98299.stderr @@ -1,8 +1,13 @@ -error[E0282]: type annotations needed - --> $DIR/issue-98299.rs:4:5 +error[E0282]: type annotations needed for `SmallCString` + --> $DIR/issue-98299.rs:4:36 | LL | SmallCString::try_from(p).map(|cstr| cstr); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for enum `Result, ()>` + | ^^^^ + | +help: consider giving this closure parameter an explicit type, where the the value of const parameter `N` is specified + | +LL | SmallCString::try_from(p).map(|cstr: SmallCString| cstr); + | +++++++++++++++++ error: aborting due to previous error -- cgit 1.4.1-3-g733a5