-
I tried this code:
```rust
#[allow(unused)]
mod stubs {
use libc::{c_int, c_long};
pub unsafe extern "C" fn sysconf(_input: c_int) -> c_long {
1
}
}
#[kani::…
-
### Code
```Rust
#![crate_type = "staticlib"]
#![feature(core_intrinsics)]
use std::intrinsics::rustc_peek;
#[no_mangle]
fn foo() -> i32 {
let x = 0;
rustc_peek(x)
}
```
#…
-
I tried this code:
```rust
async fn sum(idx: usize, num: u8) {
let sum = idx + num as usize;
println!("Sum = {}", sum);
}
async fn test() {
let results = futures::future::…
-
```
$> chcp 65001
Active code page: 65001
$> npm run build
> keep-me-contributing@0.1.0 build C:\keep-me-contributing
> grunt default
Running "shell:lint" (shell) task
Running "shell:buildFrontend…
igrep updated
8 years ago
-
### Code
```Rust
#![feature(generic_const_exprs)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
struct FlatTree;
#[derive(Copy, Clone)]
struct TreeLeaf;
#[derive(Copy, Clone)]
struct …
jxors updated
5 months ago
-
code:
````rust
#![feature(type_alias_impl_trait)]
#[derive(Copy, Clone)]
struct Foo((u32, u32));
fn main() {
type T = impl Copy;
let foo: T = Foo((1u32, 2u32));
let x = m…
-
snippet:
````rust
pub trait A {}
pub trait B: A {}
pub trait Mirror {
type Assoc: ?Sized;
}
impl Mirror for A {
type Assoc = T;
}
pub fn foo
-
Please refer to this commit for reproduction: https://github.com/IgnisDa/developrs/tree/418acbcf83d65ecd91cf77408a0175751cd488d2
### Code
```bash
cargo build -p esteem
```
### Meta
…
-
following needs to be documented and included in command-line help as well:
1. default minifier is yui_compressor.
1.1 if yui_compressor is not installed, javascript merge will fail.
1.2 if only…
-
### Reproducer
```rs
pub struct Outer);
struct Local(T);
impl std::marker::Unpin for Local {}
```
### Compiler Output
```
thread 'rustc' panicked at src/librustdoc/clean/auto_tra…