]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type_not_in_scope.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / type_not_in_scope.stderr
1 error[E0412]: cannot find type `X` in this scope
2   --> $DIR/type_not_in_scope.rs:1:6
3    |
4 LL | impl X {
5    |      ^ not found in this scope
6
7 error[E0573]: expected type, found built-in attribute `cfg_attr`
8   --> $DIR/type_not_in_scope.rs:7:18
9    |
10 LL | fn getn<const N: cfg_attr>() -> [u8; N] {}
11    |                  ^^^^^^^^ not a type
12
13 error[E0308]: mismatched types
14   --> $DIR/type_not_in_scope.rs:7:33
15    |
16 LL | fn getn<const N: cfg_attr>() -> [u8; N] {}
17    |    ----                         ^^^^^^^ expected array `[u8; N]`, found `()`
18    |    |
19    |    implicitly returns `()` as its body has no tail or `return` expression
20
21 error: aborting due to 3 previous errors
22
23 Some errors have detailed explanations: E0308, E0412, E0573.
24 For more information about an error, try `rustc --explain E0308`.