Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/lang-items/lang-item-missing.rs

13 lines
256 B
Rust
Raw Normal View History

Emit an error rather than ICEing for a missing built-in bound lang item. closes #17392
2014-09-23 17:18:54 +12:00
// Test that a missing lang item (in this case `sized`) does not cause an ICE,
// see #17392.
// error-pattern: requires `sized` lang_item
syntax: Implement #![no_core] This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The `#![no_std]` attribute now injects `extern crate core` at the top of the crate as well as the libcore prelude into all modules (in the same manner as the standard library's prelude). The `#![no_core]` attribute disables both std and core injection. [rfc]: https://github.com/rust-lang/rfcs/pull/1184
2015-07-29 17:01:14 -07:00
#![feature(start, no_core)]
#![no_core]
Emit an error rather than ICEing for a missing built-in bound lang item. closes #17392
2014-09-23 17:18:54 +12:00
#[start]
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
fn start(argc: isize, argv: *const *const u8) -> isize {
Emit an error rather than ICEing for a missing built-in bound lang item. closes #17392
2014-09-23 17:18:54 +12:00
0
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3320ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API