Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

error[E0277]: the trait bound u8: Buf is not satisfied #9

Copy link
Copy link

Description

@Mte90
Issue body actions

I get this error trying on compile that tool:

error[E0277]: the trait bound `u8: Buf` is not satisfied
   --> src/scanner.rs:257:25
    |
257 |         self.buffer.put(c as u8)
    |                         ^^^^^^^ the trait `Buf` is not implemented for `u8`

warning: unreachable expression
   --> src/scanner.rs:352:9
    |
314 | /         loop {
315 | |             match self.current {
316 | |                 EOF => {
317 | |                     if is_comment {
...   |
350 | |             }
351 | |         }
    | |_________- any code following this expression is unreachable
352 |           unreachable!()
    |           ^^^^^^^^^^^^^^ unreachable expression
    |
    = note: `#[warn(unreachable_code)]` on by default
    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error; 1 warning emitted
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.