about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-07-10 15:25:33 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-07-10 15:25:33 -0400
commit2d15f1ca42c39bb6982ebde8a84b4cda3c8f8874 (patch)
treee70d056764a342adc0b8283f9dbd844c01a781f7 /src
parentc4693bc946729393c087fb120af566395915d19d (diff)
downloadrust-2d15f1ca42c39bb6982ebde8a84b4cda3c8f8874.tar.gz
rust-2d15f1ca42c39bb6982ebde8a84b4cda3c8f8874.zip
Don't try to resolve inference variables in WF computation, just register
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/issues/issue-98299.stderr11
1 files changed, 8 insertions, 3 deletions
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<N>`
+  --> $DIR/issue-98299.rs:4:36
    |
 LL |     SmallCString::try_from(p).map(|cstr| cstr);
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for enum `Result<SmallCString<{_: usize}>, ()>`
+   |                                    ^^^^
+   |
+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<N>| cstr);
+   |                                        +++++++++++++++++
 
 error: aborting due to previous error