Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not compile bevy_render #5044

Closed
rookieWanZ opened this issue Jun 18, 2022 · 1 comment
Closed

could not compile bevy_render #5044

rookieWanZ opened this issue Jun 18, 2022 · 1 comment
Labels
C-Bug An unexpected or incorrect behavior S-Duplicate This issue or PR already exists S-User-Error This issue was caused by a mistake in the user's approach

Comments

@rookieWanZ
Copy link

rookieWanZ commented Jun 18, 2022

Bevy version

0.8.0
The release number or commit hash of the version you're using.
8b27124

[Optional] Relevant system information

WIN10
Msys2
rustc 1.60.0
cargo 1.60.0

After I git the newest bevy
Then "cargo run --example breakout"

it rolls out the error info as following:

Compiling bevy_render v0.8.0-dev (E:\Cmder_Project\bevy\bevy\crates\bevy_render)
error[E0658]: trait bounds other than Sized on const fn parameters are unstable
--> crates\bevy_render\src\render_resource\buffer_vec.rs:17:6
|
17 | impl<T: Pod> BufferVec {
| ^
18 | pub const fn new(buffer_usage: BufferUsages) -> Self {
| ---------------------------------------------------- function declared as const here
|
= note: see issue #93706 rust-lang/rust#93706 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile bevy_render due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Admin@DESKTOP-3SIKCVE MINGW64 /e/Cmder_Project/bevy/bevy

cargo run --example breakout

Compiling bevy_render v0.8.0-dev (E:\Cmder_Project\bevy\bevy\crates\bevy_render)
error[E0658]: trait bounds other than Sized on const fn parameters are unstable
--> crates\bevy_render\src\render_resource\buffer_vec.rs:17:6
|
17 | impl<T: Pod> BufferVec {
| ^
18 | pub const fn new(buffer_usage: BufferUsages) -> Self {
| ---------------------------------------------------- function declared as const here
|
= note: see issue #93706 rust-lang/rust#93706 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile bevy_render due to previous error

@rookieWanZ rookieWanZ added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jun 18, 2022
@DJMcNab DJMcNab added S-Duplicate This issue or PR already exists S-User-Error This issue was caused by a mistake in the user's approach and removed S-Needs-Triage This issue needs to be labelled labels Jun 18, 2022
@DJMcNab
Copy link
Member

DJMcNab commented Jun 18, 2022

Duplicate of #4862

Please update your rust version using rustup update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior S-Duplicate This issue or PR already exists S-User-Error This issue was caused by a mistake in the user's approach
Projects
None yet
Development

No branches or pull requests

2 participants