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

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

Open
Mte90 opened this issue Jan 16, 2021 · 2 comments · May be fixed by #10
Open

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

Mte90 opened this issue Jan 16, 2021 · 2 comments · May be fixed by #10

Comments

@Mte90
Copy link

Mte90 commented Jan 16, 2021

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
@imjdl
Copy link

imjdl commented Feb 3, 2021

I encountered the same problem.

@rhettli
Copy link

rhettli commented Mar 10, 2021

me toooooooo~~~
i got the same problem. 💯

@jaythomas jaythomas linked a pull request Sep 11, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants