fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
988 B20 linesraw
1error[E0599]: no function or associated item named `assert` found for struct `Bool<{ std::mem::needs_drop::<T>() }>` in the current scope
2  --> $DIR/const-needs_drop-monomorphic.rs:11:46
3   |
4LL | struct Bool<const B: bool> {}
5   | -------------------------- function or associated item `assert` not found for this struct
6...
7LL |     Bool::<{ std::mem::needs_drop::<T>() }>::assert();
8   |                                              ^^^^^^ function or associated item cannot be called on `Bool<{ std::mem::needs_drop::<T>() }>` due to unsatisfied trait bounds
9
10error: unconstrained generic constant
11  --> $DIR/const-needs_drop-monomorphic.rs:11:5
12   |
13LL |     Bool::<{ std::mem::needs_drop::<T>() }>::assert();
14   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = help: try adding a `where` bound using this expression: `where [(); { std::mem::needs_drop::<T>() }]:`
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0599`.