Files
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. https://github.com/rust-lang/rust/blob/810324d1f31eb8d75e8f0044df720652986ef133/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
..
2020-11-30 17:25:23 -08:00
2020-11-11 19:35:50 -08:00
2020-11-30 17:25:23 -08:00
2020-11-30 17:25:23 -08:00
2020-11-30 17:25:23 -08:00
2020-11-30 17:25:23 -08:00
2020-04-08 12:53:12 -05:00
2019-09-30 07:46:10 +02:00
2020-11-04 11:06:42 +01:00
2018-10-05 08:52:44 -07:00
2017-02-21 14:03:13 -05:00
2019-03-24 22:06:34 -04:00
2018-05-17 12:25:24 -07:00