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
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/coherence/coherence_local_ref.rs

15 lines
323 B
Rust
Raw Normal View History

Update tests for new coherence rules, and add a swatch of new tests probing the specifics of `Fundamental`. Fixes #23086. Fixes #23516.
2015-03-30 17:49:30 -04:00
// Test that we are able to introduce a negative constraint that
// `MyType: !MyTrait` along with other "fundamental" wrappers.
compiletest: Remove `skip-codegen`
2019-06-12 18:18:32 +03:00
// check-pass
Update tests for new coherence rules, and add a swatch of new tests probing the specifics of `Fundamental`. Fixes #23086. Fixes #23516.
2015-03-30 17:49:30 -04:00
// aux-build:coherence_copy_like_lib.rs
extern crate coherence_copy_like_lib as lib;
struct MyType { x: i32 }
// naturally, legal
impl lib::MyCopy for MyType { }
Removed `#[rustc_error]` from tests that are all `// compile-pass`. I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-10-31 13:08:01 +01:00
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2791ms 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