about summary refs log tree commit diff
path: root/tests/coverage/no-core.rs
blob: 206222902fc94d757367acf54474806b7a40a855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(no_core)]
#![no_core]
//@ edition: 2021

// Test that coverage instrumentation works for `#![no_core]` crates.

// For this test, we pull in std anyway, to avoid having to set up our own
// no-core or no-std environment. What's important is that the compiler allows
// coverage for a crate with the `#![no_core]` annotation.
extern crate std;

fn main() {}