rust/src/doc
Tyler Mandry 8709ac81d3
Rollup merge of #79858 - sasurau4:doc/update-unstable-book-const-fn, r=oli-obk
Update const-fn doc in unstable-book

Fix #79691

I couldn't find suitable examples. It seems that `const_fn` feature-gate used only following place. 810324d1f3/compiler/rustc_ast_passes/src/feature_gate.rs (L560-L562)

And example like following emits [E0379](https://doc.rust-lang.org/error-index.html#E0379).

```rust
#![feature(const_fn)]

trait Foo {
    const fn bar() -> Self;
}
```

Any other suitable example exists, please let me know.
2020-12-10 21:33:12 -08:00
..
book@a190438d77 Update books 2020-11-30 17:25:23 -08:00
edition-guide@b91a9a881e Update books 2020-11-11 19:35:50 -08:00
embedded-book@ba34b8a968 Update books 2020-11-30 17:25:23 -08:00
man
nomicon@d8383b65f7 Update books 2020-11-30 17:25:23 -08:00
reference@a8afdca5d0 Update books 2020-11-30 17:25:23 -08:00
rust-by-example@236c734a2c Update books 2020-11-30 17:25:23 -08:00
rustc Rollup merge of #79573 - he32:master, r=jonas-schievink 2020-12-01 10:50:25 +00:00
rustc-dev-guide@7adfab42ba
rustdoc
unstable-book Rollup merge of #79858 - sasurau4:doc/update-unstable-book-const-fn, r=oli-obk 2020-12-10 21:33:12 -08:00
complement-design-faq.md
complement-lang-faq.md
complement-project-faq.md
favicon.inc
footer.inc
full-toc.inc
grammar.md
guide-crates.md
guide-error-handling.md
guide-ffi.md
guide-macros.md
guide-ownership.md
guide-plugins.md
guide-pointers.md
guide-strings.md
guide-tasks.md
guide-testing.md
guide-unsafe.md
guide.md
index.md
intro.md
not_found.md
redirect.inc
reference.md
robots.txt
rust.css
rust.md
rustdoc.md
tutorial.md
version_info.html.template