Sha256: 2e2198c1aa004aabf8b36cc34e057b4dfce56d23401fe0a7582d8480225817f7

Contents?: true

Size: 832 Bytes

Versions: 8

Compression:

Stored size: 832 Bytes

Contents

// This code exercises the surface area that we expect of the Error generic
// member access API. If the current toolchain is able to compile it, then
// thiserror is able to provide backtrace support.

#![feature(error_generic_member_access)]

use core::fmt::{self, Debug, Display};
use std::error::{Error, Request};

struct MyError(Thing);
struct Thing;

impl Debug for MyError {
    fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
        unimplemented!()
    }
}

impl Display for MyError {
    fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
        unimplemented!()
    }
}

impl Error for MyError {
    fn provide<'a>(&'a self, request: &mut Request<'a>) {
        request.provide_ref(&self.0);
    }
}

// Include in sccache cache key.
const _: Option<&str> = option_env!("RUSTC_BOOTSTRAP");

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/thiserror-1.0.69/build/probe.rs
wasmtime-28.0.0 ./ext/cargo-vendor/thiserror-1.0.69/build/probe.rs
wasmtime-27.0.0 ./ext/cargo-vendor/thiserror-1.0.69/build/probe.rs
wasmtime-26.0.0 ./ext/cargo-vendor/thiserror-1.0.65/build/probe.rs
wasmtime-25.0.2 ./ext/cargo-vendor/thiserror-1.0.63/build/probe.rs
wasmtime-25.0.1 ./ext/cargo-vendor/thiserror-1.0.63/build/probe.rs
wasmtime-25.0.0 ./ext/cargo-vendor/thiserror-1.0.63/build/probe.rs
wasmtime-24.0.0 ./ext/cargo-vendor/thiserror-1.0.63/build/probe.rs