cognitive-engineering-lab / rust-book

The Rust Programming Language: Experimental Edition
https://rust-book.cs.brown.edu
Other
503 stars 82 forks source link

wrong quiz #192

Closed Neutron3529 closed 6 days ago

Neutron3529 commented 2 weeks ago

URL to the section(s) of the book with this problem:

https://rust-book.cs.brown.edu/ch01-02-hello-world.html

Description of the problem:

Question 1 Every executable Rust program must contain a function with the name:

The answer is not available, since the following code compiles (at least with RUSTC_BOOTSTRAP=1 rustc -):

#![feature(start)]#[start]fn start(a:isize, _b:*const *const u8) -> isize{a}

Suggested fix:

Delete the question, since no answer is available.

willcrichton commented 6 days ago

It is the correct answer for people who have just read to Section 1.2 of the book. If someone understands Rust at your level, then they don't need to answer this question :-)