about summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-15 17:34:25 -0400
committerMichael Goulet <michael@errs.io>2024-09-16 10:56:22 -0400
commitae8b4607c6c92164dce2e92f9496de189a43bc44 (patch)
tree48e337f4cf001bdf9e0de0a28b24942972b36fe7 /tests/ui/impl-trait/precise-capturing
parent26bdfefae121061187a8206bc0d6702c968a62c0 (diff)
downloadrust-ae8b4607c6c92164dce2e92f9496de189a43bc44.tar.gz
rust-ae8b4607c6c92164dce2e92f9496de189a43bc44.zip
Introduce distinct error codes for precise capturing
Diffstat (limited to 'tests/ui/impl-trait/precise-capturing')
-rw-r--r--tests/ui/impl-trait/precise-capturing/bad-params.stderr10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/impl-trait/precise-capturing/bad-params.stderr b/tests/ui/impl-trait/precise-capturing/bad-params.stderr
index 94577881d6c..07ada8da300 100644
--- a/tests/ui/impl-trait/precise-capturing/bad-params.stderr
+++ b/tests/ui/impl-trait/precise-capturing/bad-params.stderr
@@ -1,4 +1,4 @@
-error[E0412]: cannot find type or const parameter `T` in this scope
+error[E0800]: cannot find type or const parameter `T` in this scope
   --> $DIR/bad-params.rs:1:34
    |
 LL | fn missing() -> impl Sized + use<T> {}
@@ -17,19 +17,19 @@ LL | fn missing_self() -> impl Sized + use<Self> {}
    |    |
    |    `Self` not allowed in a function
 
-error[E0573]: expected type or const parameter, found function `hello`
+error[E0799]: expected type or const parameter, found function `hello`
   --> $DIR/bad-params.rs:13:32
    |
 LL | fn hello() -> impl Sized + use<hello> {}
    |                                ^^^^^ not a type or const parameter
 
-error[E0573]: expected type or const parameter, found local variable `x`
+error[E0799]: expected type or const parameter, found local variable `x`
   --> $DIR/bad-params.rs:16:35
    |
 LL | fn arg(x: ()) -> impl Sized + use<x> {}
    |                                   ^ not a type or const parameter
 
-error: `Self` can't be captured in `use<...>` precise captures list, since it is an alias
+error[E0799]: `Self` can't be captured in `use<...>` precise captures list, since it is an alias
   --> $DIR/bad-params.rs:9:48
    |
 LL | impl MyType {
@@ -39,5 +39,5 @@ LL |     fn self_is_not_param() -> impl Sized + use<Self> {}
 
 error: aborting due to 5 previous errors
 
-Some errors have detailed explanations: E0411, E0412, E0573.
+Some errors have detailed explanations: E0411, E0799, E0800.
 For more information about an error, try `rustc --explain E0411`.