forked from unicode-org/icu4x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// This file is part of ICU4X. For terms of use, please see the file | ||
// called LICENSE at the top level of the ICU4X source tree | ||
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). | ||
|
||
#![allow(unreachable_code)] | ||
#![allow(unused_variables)] | ||
|
||
use icu_provider::hello_world::*; | ||
use icu_provider::prelude::*; | ||
use std::borrow::Cow; | ||
|
||
struct HelloWorldV1MessageMarker; | ||
impl<'data> DataMarker<'data> for HelloWorldV1MessageMarker { | ||
type Yokeable = Cow<'static, str>; | ||
type Cart = HelloWorldV1<'data>; | ||
} | ||
|
||
struct Options {} | ||
|
||
fn demo(options: &Options) { | ||
let p1: DataPayload<HelloWorldV1Marker> = todo!(); | ||
let p2: DataPayload<HelloWorldV1MessageMarker> = | ||
p1.map_project_with_capture(options, |obj, options, _| todo!()); | ||
} | ||
|
||
#[test] | ||
fn map_project_with_capture_bug() { | ||
demo(todo!()); | ||
} |