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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/deriving/derive-no-std.rs

13 lines
219 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
//@ aux-build:derive-no-std.rs
Don't use std:: paths in syntax extensions when compiling a #![no_std] crate Fixes #16803. Fixes #14342. Fixes half of #21827 -- slice syntax is still broken.
2014-09-07 14:57:26 -07:00
refactor derive-no-std test, add empty struct/enum
2016-03-02 00:58:04 -05:00
extern crate derive_no_std;
use derive_no_std::*;
Don't use std:: paths in syntax extensions when compiling a #![no_std] crate Fixes #16803. Fixes #14342. Fixes half of #21827 -- slice syntax is still broken.
2014-09-07 14:57:26 -07:00
refactor derive-no-std test, add empty struct/enum
2016-03-02 00:58:04 -05:00
fn main() {
let f = Foo { x: 0 };
assert_eq!(f.clone(), Foo::default());
Don't use std:: paths in syntax extensions when compiling a #![no_std] crate Fixes #16803. Fixes #14342. Fixes half of #21827 -- slice syntax is still broken.
2014-09-07 14:57:26 -07:00
refactor derive-no-std test, add empty struct/enum
2016-03-02 00:58:04 -05:00
assert!(Bar::Qux < Bar::Quux(42));
Don't use std:: paths in syntax extensions when compiling a #![no_std] crate Fixes #16803. Fixes #14342. Fixes half of #21827 -- slice syntax is still broken.
2014-09-07 14:57:26 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2504ms 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