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

CString Documentation example does not compile #48218

Closed
LivingInSyn opened this issue Feb 14, 2018 · 2 comments
Closed

CString Documentation example does not compile #48218

LivingInSyn opened this issue Feb 14, 2018 · 2 comments
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools

Comments

@LivingInSyn
Copy link

This is in regards to this example in the documentation:

https://doc.rust-lang.org/std/ffi/struct.CString.html#examples

Clicking 'Run' on brings you to the rust playground, where it fails to compile. It is missing the function my_printer

Link to playground: here

@steveklabnik steveklabnik added the A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools label Feb 14, 2018
@steveklabnik
Copy link
Member

I am not sure why this is not marked ignore, but certainly should be! thanks!

@LivingInSyn
Copy link
Author

This also effects the three examples here:

https://doc.rust-lang.org/std/ffi/struct.CStr.html#examples

Should I file a separate issue?

frewsxcv added a commit to frewsxcv/rust that referenced this issue Feb 18, 2018
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Feb 21, 2018
…bnik

Mark doc examples w/ `extern` blocks as `ignore`.

Fixes rust-lang#48218.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

No branches or pull requests

2 participants