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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/issues/issue-25679.rs

21 lines
296 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Don't call instantiate_type_scheme during method probing It can introduce obligations to the fulfillment context, which would incorrectly still remain after the probe finished. Fixes #25679.
2015-06-13 23:34:03 +03:00
trait Device {
type Resources;
}
Adjust compiler tests for unused_tuple_struct_fields -> dead_code
2023-12-27 17:11:58 -05:00
#[allow(dead_code)]
Don't call instantiate_type_scheme during method probing It can introduce obligations to the fulfillment context, which would incorrectly still remain after the probe finished. Fixes #25679.
2015-06-13 23:34:03 +03:00
struct Foo<D, R>(D, R);
Make impl-trait-ref associated types work in methods
2015-06-14 02:27:18 +03:00
impl<D: Device> Foo<D, D::Resources> {
Don't call instantiate_type_scheme during method probing It can introduce obligations to the fulfillment context, which would incorrectly still remain after the probe finished. Fixes #25679.
2015-06-13 23:34:03 +03:00
fn present(&self) {}
}
struct Res;
struct Dev;
impl Device for Dev { type Resources = Res; }
fn main() {
let foo = Foo(Dev, Res);
foo.present();
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3189ms Template: 4ms
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