You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2024. It is now read-only.
=== stdout ===
=== stderr ===
error: generic parameters may not be used in const operations
--> /home/runner/work/glacier/glacier/ices/80062.rs:3:23
|
3 | let _: [u8; sof::<T>()];
| ^ cannot perform const operation using `T`
|
= note: type parameters may not be used in const expressions
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
warning: type parameter `usize` should have an upper camel case name
--> /home/runner/work/glacier/glacier/ices/80062.rs:1:8
|
1 | fn sof<usize>() -> usize {}
| ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Usize`
|
= note: `#[warn(non_camel_case_types)]` on by default
error[E0601]: `main` function not found in crate `80062`
--> /home/runner/work/glacier/glacier/ices/80062.rs:1:1
|
1 | / fn sof<usize>() -> usize {}
2 | | fn test<T>() {
3 | | let _: [u8; sof::<T>()];
4 | | }
| |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/80062.rs`
error[E0308]: mismatched types
--> /home/runner/work/glacier/glacier/ices/80062.rs:1:20
|
1 | fn sof<usize>() -> usize {}
| --- ----- ^^^^^ expected type parameter `usize`, found `()`
| | |
| | this type parameter
| implicitly returns `()` as its body has no tail or `return` expression
|
= note: expected type parameter `usize`
found unit type `()`
error: aborting due to 3 previous errors; 1 warning emitted
Some errors have detailed explanations: E0308, E0601.
For more information about an error, try `rustc --explain E0308`.
==============
Co-authored-by: rustbot <[email protected]>
0 commit comments