]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/const-generics/type_not_in_scope.stderr
Merge 1.70 into proxmox/bookworm
[rustc.git] / tests / ui / const-generics / type_not_in_scope.stderr
index 5f45550a6279633d319357f64a90f69bbd81ee13..5eb81ca0522412278bad70464974644eab16782b 100644 (file)
@@ -10,15 +10,7 @@ error[E0573]: expected type, found built-in attribute `cfg_attr`
 LL | fn getn<const N: cfg_attr>() -> [u8; N] {}
    |                  ^^^^^^^^ not a type
 
-error[E0308]: mismatched types
-  --> $DIR/type_not_in_scope.rs:7:33
-   |
-LL | fn getn<const N: cfg_attr>() -> [u8; N] {}
-   |    ----                         ^^^^^^^ expected `[u8; N]`, found `()`
-   |    |
-   |    implicitly returns `()` as its body has no tail or `return` expression
-
-error: aborting due to 3 previous errors
+error: aborting due to 2 previous errors
 
-Some errors have detailed explanations: E0308, E0412, E0573.
-For more information about an error, try `rustc --explain E0308`.
+Some errors have detailed explanations: E0412, E0573.
+For more information about an error, try `rustc --explain E0412`.