-
Consider the following code:
```rust
trait ZeroSized: Sized {
#[deny(const_err)]
const I_AM_ZERO_SIZED: ();
fn requires_zero_size(self);
}
impl ZeroSized for T {
const I_AM_Z…
-
https://sentry.io/organizations/nobtio/issues/1312916675/?referrer=github_plugin
```
TypeError: undefined is not an object (evaluating 'n.props.balance.me')
at context (./src/routes/App/routes/bala…
-
I expect the following program to compile without error.
```rust
extern crate futures; // version 0.1.9
use futures::{Future, future};
fn main() {
let _ = future::join_all(vec![
…
-
I played with the example in documentation and found that Levenshtein does not accept long strings. Here is an example
`let lev = Levenshtein::new("monomorphization", 3).unwrap();`
This line cau…
-
We should try to make `fluent-bundle` release size as small as possible.
@cmyr pointed out in https://github.com/zbraniecki/unic-locale/issues/10 that at the moment the size increase is ~300kb.
…
-
This is a toy example I made in order to later make tests which run for `T` with `M=0..N`.
```rust
#![feature(const_generics)]
#[allow(incomplete_features)]
struct Z;
impl Z {
fn fact()…
-
The following override causes a linker error:
```toml
[profile.dev.overrides.std]
opt-level = 2
```
Whereas an override like `[profile.dev.overrides."*"]` works fine. Here is a gist of the er…
ehuss updated
5 years ago
-
`rustc src/test/ui/issues/issue-26805.rs -Cpasses=lint`
````
Undefined behavior: Division by zero
%26 = sdiv exact i64 %25, 0
````
code is
````
// run-pass
struct NonOrd;
fn main() {
…
-
With the lack of generics support in the compiler (while requiring an unique set of inferred types per class), the option to brute-force one's way through metaprogramming situations by generating the …
-
Rust has native support for references to values. In addition to that, some types have specific variants for referencing the original
- str / String
- Path / PathBuf
- OsStr / OsString
- slice / …
epage updated
5 years ago