rust/tests/ui/const-generics/lookup-method.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
564 B
Plaintext
Raw Normal View History

error[E0599]: no method named `build` found for struct `Builder<false, true>` in the current scope
--> $DIR/lookup-method.rs:17:14
|
LL | struct Builder<const A: bool, const B: bool>;
| -------------------------------------------- method `build` not found for this struct
...
LL | b.cast().build();
| ^^^^^ method not found in `Builder<false, true>`
|
= note: the method was found for
- `Builder<true, true>`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0599`.