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

^^^^^ expected one of 8 possible token #1193

Closed
r3k2 opened this issue Apr 17, 2020 · 4 comments
Closed

^^^^^ expected one of 8 possible token #1193

r3k2 opened this issue Apr 17, 2020 · 4 comments

Comments

@r3k2
Copy link

r3k2 commented Apr 17, 2020

what is this? and why I am getting a rust error on my text not even a markdown part..

running 1 test
test /tmp/mdbook-HGtQ73/History.md - _::_::Operation_Cybersnare (line 42) ... FAILED

failures:

---- /tmp/mdbook-HGtQ73/History.md - _::_::Operation_Cybersnare (line 42) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Lacap`
 --> /tmp/mdbook-HGtQ73/History.md:43:9
  |
3 | Richard Lacap, of Katy, Texas, who used the computer alias of "Chillin" and Kevin Watkins, of Houston, Texas, who used the computer alias of "Led". Lacap and Watkins were charged by criminal complaint with conspiring to break into the computer system of an Oregon Cellular Telephone company.
  |         ^^^^^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.

failures:
    /tmp/mdbook-HGtQ73/History.md - _::_::Operation_Cybersnare (line 42)

Thanks

@ehuss
Copy link
Contributor

ehuss commented Apr 17, 2020

It is difficult to say without seeing the original text. A likely cause is that indented text is considered a "code block" and code blocks default to the Rust language.

@r3k2
Copy link
Author

r3k2 commented Apr 20, 2020

@ehuss must be that... maybe.. you saying that if I use markdown like

this is markdown

will default to rust?

@ehuss
Copy link
Contributor

ehuss commented Apr 20, 2020

Generally, yes. There are some issues for providing a way to turn it off, such as rust-lang/rust#59867 and rust-lang/rust#64162.

@ehuss
Copy link
Contributor

ehuss commented Apr 22, 2020

Closing since this is an upstream rustdoc issue.

@ehuss ehuss closed this as completed Apr 22, 2020
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

No branches or pull requests

2 participants