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

Fix change in error message breaking compile_fail #80

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ error[E0599]: no function or associated item named `unknown_method` found for st
| quantity_type Quantity;
| -------- function or associated item `unknown_method` not found for this struct
|
note: if you're trying to build a new `Quantity<_, Dimension>` consider using one of the following associated functions:
Quantity::<S, D>::new_unchecked
Quantity::<f32, D>::zero
Quantity::<f64, D>::zero
--> tests/compile_fail/example_system/mod.rs
|
| / unit_system_internal!(
| | quantity_type Quantity;
| | dimension_type Dimension;
| | dimension Length;
... |
| | constant SOLAR_MASS_AWKWARD = 1.988477e30 * kilograms / (seconds / seconds);
| | );
| |_^
= note: this error originates in the macro `unit_system_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
note: if you're trying to build a new `Quantity<_, Dimension>`, consider using `Quantity::<S, D>::new_unchecked` which returns `Quantity<_, _>`
--> tests/compile_fail/example_system/mod.rs
|
| / unit_system_internal!(
| | quantity_type Quantity;
| | dimension_type Dimension;
| | dimension Length;
... |
| | constant SOLAR_MASS_AWKWARD = 1.988477e30 * kilograms / (seconds / seconds);
| | );
| |_^
= note: this error originates in the macro `unit_system_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
Loading